/* ============================================================
   PUBLIC AUTH CSS (Login/Register/Invite/Forgot/Reset)
   Theme aligned with home/pricing
============================================================ */

:root {
  --navy-900: #050d1a;
  --navy-800: #0a1628;
  --ice: #5bb8ff;
  --white: #ffffff;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-40: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.1);
  --radius-sm: 8px;
  --radius-lg: 22px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  position: relative;
  min-height: 100vh;
  background: var(--navy-900);
  color: var(--white);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 12%, rgba(91, 184, 255, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 80% 75%, rgba(47, 122, 184, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.auth-wrapper {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 68px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 56px 20px;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
}

.auth-title {
  font-family: "Sora", sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--white);
}

.auth-subtitle {
  text-align: center;
  color: var(--white-70);
  font-size: 14px;
  margin-bottom: 22px;
}

.form-label {
  color: var(--white-70);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.auth-card .form-control {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-card .form-control::placeholder {
  color: var(--white-40);
}

.auth-card .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(91, 184, 255, 0.15);
  color: var(--white);
}

.auth-card .form-control[disabled],
.auth-card .form-control[readonly] {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white-70);
}

.auth-btn-primary {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--ice);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 15px;
  transition: all var(--transition);
}

.auth-btn-primary:hover {
  background: #7ecfff;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(91, 184, 255, 0.35);
}

.auth-alert {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.auth-alert-danger {
  background: rgba(255, 92, 92, 0.12);
  border-color: rgba(255, 92, 92, 0.35);
  color: #ff8e8e;
}

.auth-alert-success {
  background: rgba(69, 201, 129, 0.12);
  border-color: rgba(69, 201, 129, 0.35);
  color: #89efb7;
}

.auth-alert-info {
  background: rgba(91, 184, 255, 0.12);
  border-color: rgba(91, 184, 255, 0.3);
  color: #b5e2ff;
}

.auth-links {
  text-align: center;
  margin-top: 18px;
}

.auth-links a {
  color: var(--ice);
  font-size: 14px;
}

.auth-links a:hover {
  color: #9edbff;
  text-decoration: underline;
}

.password-strength-wrapper {
  margin-top: 8px;
}

.password-strength-wrapper .text-muted {
  color: var(--white-40) !important;
}

.password-strength-segments {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.password-strength-segments .segment {
  flex: 1;
  height: 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  transition:
    background-color 0.25s ease-in-out,
    transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.25s ease-in-out;
}

.password-strength-segments .segment.active {
  transform: scaleY(1.35);
}

.password-strength-segments .segment.red {
  background: #ef4444 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.password-strength-segments .segment.orange {
  background: #f59e0b !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}

.password-strength-segments .segment.blue {
  background: #3b82f6 !important;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.45);
}

.password-strength-segments .segment.green {
  background: #22c55e !important;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.45);
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--white-40);
  transition: color var(--transition);
  z-index: 10;
}

.password-toggle:hover {
  color: var(--ice);
}

.password-input {
  padding-right: 40px !important;
}

@media (max-width: 640px) {
  .auth-wrapper {
    padding: 36px 14px;
  }

  .auth-card {
    max-width: 100%;
    padding: 28px 22px;
  }

  .auth-title {
    font-size: 24px;
  }
}
