/* Auth Pages Styles */
.auth-page {
  background: linear-gradient(135deg, #1e4b7a 0%, #092038 100%);
  min-height: 100vh;
}

.auth-section {
  padding: 140px 0 80px;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  margin-top: 75px;
}

.auth-container {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(232, 196, 106, 0.3);
}

.auth-header h2 {
  color: #1e4b7a;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-header p {
  color: #666;
  font-size: 15px;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.auth-form label i {
  color: #e8c46a;
  margin-right: 8px;
}

.auth-form .form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.auth-form .form-control:focus {
  border-color: #e8c46a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(232, 196, 106, 0.15);
  outline: none;
}

.password-input {
  position: relative;
}

.password-input .form-control {
  padding-right: 50px;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0;
}

.toggle-password:hover {
  color: #1e4b7a;
}

.password-hint {
  color: #888;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  cursor: pointer;
}

.remember-me input {
  accent-color: #e8c46a;
}

.forgot-password {
  color: #1e4b7a;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  color: #e8c46a;
  text-decoration: underline;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.terms-checkbox input {
  margin-top: 3px;
  accent-color: #e8c46a;
}

.terms-checkbox a {
  color: #1e4b7a;
  text-decoration: none;
}

.terms-checkbox a:hover {
  text-decoration: underline;
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-gold {
  background: linear-gradient(135deg, #e8c46a 0%, #d4a44a 100%);
  border: none;
  color: #000;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d4a44a 0%, #c49a40 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 196, 106, 0.4);
}

.auth-divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #e0e0e0;
}

.auth-divider span {
  background: #fff;
  padding: 0 15px;
  color: #888;
  font-size: 13px;
  position: relative;
}

.social-login {
  display: flex;
  gap: 15px;
}

.btn-social {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-google {
  background: #fff;
  border: 2px solid #e0e0e0;
  color: #333;
}

.btn-google:hover {
  border-color: #db4437;
  color: #db4437;
}

.btn-facebook {
  background: #1877f2;
  border: 2px solid #1877f2;
  color: #fff;
}

.btn-facebook:hover {
  background: #166fe5;
}

.auth-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.auth-footer p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.auth-footer a {
  color: #1e4b7a;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  color: #e8c46a;
}

/* Alert Messages */
.alert {
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 14px;
}

.alert-success {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Responsive */
@media (max-width: 576px) {
  .auth-container {
    margin: 0 15px;
    padding: 30px 25px;
  }
  
  .auth-header h2 {
    font-size: 24px;
  }
  
  .social-login {
    flex-direction: column;
  }
  
  .form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}


/* Forgot Password Modal Styles */
#forgotPasswordModal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#forgotPasswordModal .modal-header {
  background: linear-gradient(135deg, #1e4b7a 0%, #092038 100%);
  color: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px 25px;
}

#forgotPasswordModal .modal-title {
  font-weight: 600;
}

#forgotPasswordModal .btn-close {
  filter: brightness(0) invert(1);
}

#forgotPasswordModal .modal-body {
  padding: 30px;
}

#forgotPasswordModal .forgot-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e4b7a 0%, #092038 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #d4a44a;
  font-size: 32px;
}

#forgotPasswordModal .forgot-icon.success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: #fff;
}

#forgotPasswordModal .form-group {
  margin-bottom: 20px;
}

#forgotPasswordModal .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

#forgotPasswordModal .security-question-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #1e4b7a;
  background: #f8f9fa;
  padding: 12px 15px;
  border-radius: 8px;
  border-left: 4px solid #d4a44a;
}

#forgotPasswordModal .form-control {
  border-radius: 8px;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

#forgotPasswordModal .form-control:focus {
  border-color: #d4a44a;
  box-shadow: 0 0 0 3px rgba(212, 164, 74, 0.1);
}

#forgotPasswordModal .input-group-text {
  background: #1e4b7a;
  color: #fff;
  border: 2px solid #1e4b7a;
  font-weight: 600;
}

#forgotPasswordModal .input-group .form-control {
  border-left: none;
}

#forgotPasswordModal .btn-gold {
  background: linear-gradient(135deg, #d4a44a 0%, #b8860b 100%);
  border: none;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#forgotPasswordModal .btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(212, 164, 74, 0.4);
}

#forgotPasswordModal .btn-gold:disabled {
  opacity: 0.7;
  transform: none;
}

#forgotPasswordModal .password-input {
  position: relative;
}

#forgotPasswordModal .password-input .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
}

#forgotPasswordModal .password-input .toggle-password:hover {
  color: #d4a44a;
}

#forgotPasswordModal #backToPhone {
  text-decoration: none;
  font-size: 14px;
}

#forgotPasswordModal #backToPhone:hover {
  color: #d4a44a !important;
}

#forgotPasswordModal .password-strength {
  min-height: 20px;
}

/* Success Animation */
#forgotSuccess .success-animation {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: successPop 0.5s ease;
}

#forgotSuccess .success-animation i {
  color: #fff;
  font-size: 50px;
  animation: checkmark 0.3s ease 0.3s forwards;
  opacity: 0;
}

@keyframes successPop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes checkmark {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* Security Question Section in Signup */
.security-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #e9ecef;
}

.security-section .security-title {
  color: #1e4b7a;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #d4a44a;
}

.security-section .form-group {
  margin-bottom: 15px;
}

.security-section select.form-control {
  cursor: pointer;
}

.security-section small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}
