/* Login Page Styles */
/* Extends auth.css styles */

/* Import base auth styles */
@import url('./auth.css');

/* Login-specific left background */
.login-left {
  background: linear-gradient(135deg, rgba(52, 168, 83, 0.85), rgba(66, 133, 244, 0.75)),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&h=800&fit=crop') center/cover !important;
}

/* Form Styles */
.login-form,
.register-form {
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 15px;
  color: #3c4043;
  background: #ffffff;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: #9aa0a6;
}

.form-input:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Password Wrapper */
.password-wrapper {
  position: relative;
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #5f6368;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #202124;
}

.password-toggle i {
  font-size: 18px;
}

/* Error Message */
.error-message {
  color: #d93025;
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
  padding: 10px;
  border-radius: 4px;
  background-color: #fce8e6;
  border: 1px solid #d93025;
  animation: shake 0.3s ease;
}

.error-message.show {
  display: block;
}

/* Success Message */
.success-message {
  color: #0f9d58;
  font-size: 13px;
  margin-bottom: 20px;
  display: block;
  padding: 10px;
  border-radius: 4px;
  background-color: #e6f4ea;
  border: 1px solid #0f9d58;
  animation: fadeIn 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Captcha */
.captcha-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.captcha-box {
  width: 60px;
  height: 60px;
  background: #202124;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.captcha-box:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.captcha-letter {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  user-select: none;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #f9a825, #f57c00);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #fb8c00, #ef6c00);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 124, 0, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Input with Icon */
.input-with-icon {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #5f6368;
  font-size: 18px;
  pointer-events: none;
}

/* Checkbox Group */
.checkbox-group {
  margin-bottom: 25px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #34a853;
}

.checkbox-text {
  font-size: 14px;
  color: #5f6368;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .form-input {
    padding: 12px 16px;
    font-size: 14px;
  }

  .captcha-box {
    width: 50px;
    height: 50px;
  }

  .captcha-letter {
    font-size: 24px;
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 15px;
  }
}
