/* Auth Pages Styles */
.auth-page {
  background: linear-gradient(135deg, #1a365d 0%, #0a1628 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(212, 164, 74, 0.3);
}

.auth-header h2 {
  color: #1a365d;
  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: #d4a44a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(212, 164, 74, 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: #1a365d;
}

.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: #d4a44a;
}

.forgot-password {
  color: #1a365d;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  color: #d4a44a;
  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: #d4a44a;
}

.terms-checkbox a {
  color: #1a365d;
  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, #d4a44a 0%, #b8860b 100%);
  border: none;
  color: #000;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #b8860b 0%, #a67c00 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 164, 74, 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: #1a365d;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  color: #d4a44a;
}

/* 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, #1a365d 0%, #0a1628 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, #1a365d 0%, #0a1628 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: #1a365d;
  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: #1a365d;
  color: #fff;
  border: 2px solid #1a365d;
  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: #1a365d;
  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;
}


/* ========================================
   Email Verification Modal Styles
   ======================================== */

.verification-modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.verification-header {
  background: linear-gradient(135deg, #1a365d 0%, #0a1628 100%);
  color: #fff;
  padding: 20px 25px;
  border: none;
}

.verification-header .modal-title {
  font-weight: 600;
  font-size: 18px;
}

.verification-header .modal-title i {
  color: #d4a44a;
}

.verification-body {
  padding: 40px 30px;
  text-align: center;
}

.verification-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a365d 0%, #0a1628 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  animation: pulse 2s infinite;
}

.verification-icon i {
  font-size: 40px;
  color: #d4a44a;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 164, 74, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(212, 164, 74, 0);
  }
}

.verification-title {
  color: #1a365d;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.verification-subtitle {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.verification-subtitle strong {
  color: #1a365d;
  display: block;
  margin-top: 5px;
}

/* Code Input Boxes */
.code-input-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.code-input {
  width: 50px;
  height: 60px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #1a365d;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.code-input:focus {
  border-color: #d4a44a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(212, 164, 74, 0.15);
  outline: none;
}

.code-input.filled {
  border-color: #1a365d;
  background: #fff;
}

.code-input.error {
  border-color: #dc3545;
  background: #fff5f5;
  animation: shake 0.5s ease;
}

.code-input.success {
  border-color: #28a745;
  background: #f0fff4;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* Timer */
.verification-timer {
  color: #888;
  font-size: 14px;
  margin-bottom: 20px;
}

.verification-timer span {
  font-weight: 700;
  color: #1a365d;
}

.verification-timer.expiring span {
  color: #dc3545;
}

/* Verification Message */
.verification-message {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
}

.verification-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.verification-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Verify Button */
.verify-btn {
  margin-bottom: 25px;
}

.verify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Resend Section */
.resend-section {
  margin-bottom: 20px;
}

.resend-section p {
  color: #888;
  font-size: 14px;
  margin-bottom: 8px;
}

.btn-resend {
  background: none;
  border: none;
  color: #1a365d;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-resend:hover:not(:disabled) {
  color: #d4a44a;
}

.btn-resend:disabled {
  color: #aaa;
  cursor: not-allowed;
}

.btn-resend span {
  font-weight: 400;
  color: #888;
}

/* Back Button */
.btn-back {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
}

/* Success Modal */
.success-modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.success-animation {
  margin-bottom: 25px;
}

.success-animation i {
  font-size: 80px;
  color: #28a745;
  animation: successBounce 0.6s ease;
}

@keyframes successBounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  color: #1a365d;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
}

.success-message {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 576px) {
  .code-input-container {
    gap: 6px;
  }
  
  .code-input {
    width: 42px;
    height: 52px;
    font-size: 20px;
  }
  
  .verification-body {
    padding: 30px 20px;
  }
}
