/* ==========================================================================
   AURORAEX - AUTHENTICATION PAGES (LOGIN & REGISTER)
   Clean, trustworthy, light theme aesthetic
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.auth-nav {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  background: #ffffff;
}

.auth-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.auth-nav-link:hover {
  color: #00875f;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem;
}

.auth-container {
  width: 100%;
  max-width: 480px;
}

.auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.auth-header p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.auth-plan-alert {
  background: #ecfdf5;
  border: 1px solid rgba(0, 168, 126, 0.25);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #00875f;
  font-weight: 600;
}

.auth-form-group {
  margin-bottom: 1.25rem;
}

.auth-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.45rem;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.auth-input:focus {
  outline: none;
  border-color: #00875f;
  box-shadow: 0 0 0 3px rgba(0, 135, 95, 0.15);
}

.auth-password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
}

.auth-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  margin: 1.25rem 0 1.5rem;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  cursor: pointer;
}

.auth-forgot-link {
  color: #00875f;
  text-decoration: none;
  font-weight: 600;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  padding: 0.85rem;
  background: #00875f;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 135, 95, 0.25);
}

.auth-submit-btn:hover {
  background: #006f4f;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 111, 79, 0.35);
}

.auth-footer-switch {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.92rem;
  color: #64748b;
}

.auth-footer-switch a {
  color: #00875f;
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.25rem;
}

.auth-footer-switch a:hover {
  text-decoration: underline;
}

.auth-security-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.auth-security-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-security-item i {
  color: #00875f;
}

/* Institutional Auth Notifications */
.auth-notice-banner {
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeInNotice 0.25s ease-out;
}

@keyframes fadeInNotice {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-notice-banner.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-notice-banner.error .notice-icon {
  color: #dc2626;
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

.auth-notice-banner.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.auth-notice-banner.warning .notice-icon {
  color: #d97706;
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

.auth-notice-banner.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.auth-notice-banner.success .notice-icon {
  color: #059669;
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

.auth-notice-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: inherit;
  font-size: 0.92rem;
}

.auth-notice-body {
  color: inherit;
  opacity: 0.95;
  font-size: 0.85rem;
}

.auth-notice-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0.4rem 0.85rem;
  background: #ffffff;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-notice-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

/* Enhanced Mobile Optimization for Auth Pages */
@media (max-width: 480px) {
  .auth-main {
    padding: 1.5rem 0.85rem;
  }
  .auth-card {
    padding: 1.75rem 1.15rem;
    border-radius: 16px;
  }
  .auth-header h1 {
    font-size: 1.45rem;
  }
  .auth-header p {
    font-size: 0.86rem;
  }
  .auth-input {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    padding: 0.75rem 0.85rem 0.75rem 2.5rem;
  }
  .auth-submit-btn {
    padding: 0.8rem;
    font-size: 0.92rem;
  }
  .auth-security-strip {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

/* Google OAuth & Social Auth Styling */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0 1rem;
  color: #94a3b8;
  font-size: 0.78rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.auth-divider span {
  padding: 0 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-google-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-google-auth:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-google-auth svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-referral-badge {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #065f46;
}

