/* Auth (login/register) specific styles */
.auth-container {
  background: var(--card);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin: 6rem auto;
}

.auth-container h2 {
  margin-bottom: 1.5rem;
  color: var(--text);
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-weight: 500;
}

.auth-form input::placeholder {
  color: var(--text-light);
  opacity: 0.8;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2), 
              inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Auth-specific button modifications */
.auth-form .btn {
  width: 100%;
  margin: 8px 0 0 0;
}

.form-links {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.form-links a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.form-links a:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 81, 155, 0.1);
}
.form-control::placeholder {
  color: var(--text-muted);
}

/* reCAPTCHA widget styling */
.g-recaptcha {
  display: flex !important;
  justify-content: center !important;
  margin: 1rem 0 !important;
  width: 100% !important;
}

/* Make reCAPTCHA responsive and match button width */
.g-recaptcha > div {
  width: 100% !important;
  max-width: 304px !important;
  margin: 0 auto !important;
}

@media (max-width: 768px) {
  .auth-container {
    margin: 2rem auto;
    padding: 1.5rem;
    max-width: 90%;
  }
  
  .auth-form input {
    padding: 0.8rem;
    font-size: 1rem;
  }
  
  .otp-input {
    font-size: 1.3rem !important;
    letter-spacing: 0.3rem !important;
    padding: 0.8rem !important;
  }
  
  .info-message {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .auth-container {
    margin: 1rem auto;
    padding: 1rem;
    max-width: 95%;
    border-radius: 16px;
  }
  
  .auth-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .auth-form input {
    padding: 0.7rem;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }
  
  .g-recaptcha {
    transform: scale(0.9) !important;
  }
  
  .otp-input {
    font-size: 1.2rem !important;
    letter-spacing: 0.2rem !important;
    padding: 0.7rem !important;
  }
  
  .info-message {
    padding: 0.7rem;
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
}

/* 2FA and Password Reset specific styles */
.info-message {
  background: rgba(74, 144, 226, 0.1);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-align: left;
}

.info-message p {
  margin: 0.5rem 0;
}

.info-message p:first-child {
  margin-top: 0;
}

.info-message p:last-child {
  margin-bottom: 0;
}

.otp-input {
  font-size: 1.5rem !important;
  letter-spacing: 0.5rem !important;
  text-align: center !important;
  font-weight: bold !important;
  padding: 1rem !important;
}

.resend-section {
  margin: 1rem 0;
  text-align: center;
}

.resend-section p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}

.btn-link:hover {
  color: var(--hover);
}

.forgot-password-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password-link:hover {
  text-decoration: underline;
  color: var(--hover);
}

.secondary-btn {
  background: transparent !important;
  color: var(--text) !important;
  border: 2px solid var(--border) !important;
  margin-top: 0.5rem !important;
}

.secondary-btn:hover {
  background: var(--glass-hover) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
