/* ════════════════════════════════════════════════════════
   NAGRIVA — Premium Authentication UI (Redesigned)
   Dark luxury SaaS auth modal with refined glassmorphism
═════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
.auth-scope {
  --auth-radius: 20px;
  --auth-input-radius: 12px;
  --auth-glow: rgba(0,245,196,0.15);
}

/* ─── Book a Call CTA — always visible regardless of auth state ─── */
.btn-book {
  display: inline-flex;
}

/* ─── Auth Button in Navbar ─── */
.btn-auth {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border2);
  padding: 7px 18px;
  border-radius: 99px;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn-auth::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,245,196,0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-auth:hover::before { opacity: 1; }
.btn-auth:hover {
  color: var(--white);
  border-color: rgba(0,245,196,0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,245,196,0.06);
}
.btn-auth svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}
.btn-auth:hover svg { transform: translateX(2px); }

/* ─── Logged-in Avatar Badge ─── */
.nav-user-avatar {
  display: none;
  align-items: center;
  cursor: pointer;
  position: relative;
}
.nav-user-avatar.visible { display: flex; }
.nav-user-avatar:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Avatar Skeleton ─── */
.nav-avatar-skeleton {
  display: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-avatar-skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,245,196,0.06), transparent);
  animation: avatar-skeleton-shimmer 1.5s ease-in-out infinite;
}
@keyframes avatar-skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.nav-user-avatar.loading .nav-avatar-skeleton { display: block; }
.nav-user-avatar.loading .nav-user-img { display: none; }

/* ─── Avatar Image ─── */
.nav-user-img {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.nav-user-img.has-image {
  background: transparent;
}
.nav-user-img img.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.nav-user-avatar:hover .nav-user-img {
  box-shadow: 0 0 0 2px rgba(0,245,196,0.15), 0 0 30px rgba(0,245,196,0.08);
  transform: scale(1.05);
}

/* ════════════════════════════════════════════
   USER DROPDOWN MENU — Premium SaaS
════════════════════════════════════════════ */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: rgba(8,12,12,0.92);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow:
    0 0 0 1px rgba(0,245,196,0.03),
    0 32px 80px rgba(0,0,0,0.55),
    0 0 60px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.04);
  z-index: 1001;
}
.user-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 2px;
}
.user-dropdown-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.user-dropdown-avatar img.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.user-dropdown-avatar.has-image {
  background: transparent;
}
.user-dropdown-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.user-dropdown-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-dropdown-role {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,245,196,0.08);
  border: 1px solid rgba(0,245,196,0.1);
  padding: 1px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ─── Dropdown Menu Items ─── */
.user-dropdown-menu {
  padding: 2px 0;
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--gray);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.user-dropdown-item:hover {
  background: rgba(0,245,196,0.06);
  color: var(--white);
}
.user-dropdown-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--gray2);
  transition: color 0.2s ease;
}
.user-dropdown-item:hover svg {
  color: var(--accent);
}
.user-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 4px 10px 4px;
}
.user-dropdown-item.signout {
  color: rgba(255,100,100,0.55);
}
.user-dropdown-item.signout:hover {
  background: rgba(255,80,80,0.08);
  color: #ff7070;
}
.user-dropdown-item.signout:hover svg {
  color: #ff7070;
}
.user-dropdown-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ════════════════════════════════════════════
   AUTH MODAL — OVERLAY & BACKDROP
════════════════════════════════════════════ */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.auth-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

/* ─── Decorative Ambient Orbs ─── */
.auth-ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.auth-ambient-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,245,196,0.06) 0%, transparent 70%);
  top: -20%; left: -20%;
  animation: auth-ambient-drift 16s ease-in-out infinite alternate;
}
.auth-ambient-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(139,92,246,0.04) 0%, transparent 70%);
  bottom: -25%; right: -20%;
  animation: auth-ambient-drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes auth-ambient-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(12px, -8px) scale(1.04); }
}

/* ─── Modal Container ─── */
.auth-modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(8,12,12,0.88);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 24px;
  padding: 0;
  transform: translateY(30px) scale(0.93);
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 1px rgba(0,245,196,0.03),
    0 32px 80px rgba(0,0,0,0.5),
    0 0 80px rgba(0,245,196,0.03),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.auth-overlay.active .auth-modal {
  transform: translateY(0) scale(1);
}
.auth-modal::-webkit-scrollbar { width: 4px; }
.auth-modal::-webkit-scrollbar-track { background: transparent; }
.auth-modal::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
}
.auth-modal::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.1); }

/* ─── Top Accent Glow ─── */
.auth-modal-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 240px;
  background: radial-gradient(ellipse, rgba(0,245,196,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Close Button ─── */
.auth-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.35);
  color: var(--gray2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
}
.auth-close-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
  transform: rotate(90deg);
}

/* ─── Auth Modal Inner ─── */
.auth-inner {
  position: relative;
  z-index: 1;
  padding: 40px 36px 36px;
}

/* ─── Auth Header ─── */
.auth-header {
  text-align: center;
  margin-bottom: 30px;
}
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px 16px 6px 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 99px;
}
.auth-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.auth-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--white);
}
.auth-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.auth-subtitle {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto;
}

/* ─── Auth Tabs ─── */
.auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.auth-tab {
  flex: 1;
  padding: 10px 12px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--gray2);
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  background: none;
  border: none;
  font-family: inherit;
  position: relative;
  z-index: 1;
}
.auth-tab.active {
  background: rgba(0,245,196,0.08);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0,245,196,0.05);
}
.auth-tab:hover:not(.active) {
  color: var(--white);
}

/* ─── Auth Forms ─── */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 20px;
}
.auth-form.active { display: flex; }

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-form .form-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-form .form-label a {
  font-size: 0.75rem;
  color: var(--accent);
  cursor: pointer;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: none;
  font-weight: 500;
}
.auth-form .form-label a:hover { opacity: 0.8; }

/* ─── Input Wrapper ─── */
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 14px;
  color: var(--gray2);
  pointer-events: none;
  z-index: 2;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  opacity: 0.6;
}
.auth-input-wrap:focus-within .auth-input-icon {
  color: var(--accent);
  opacity: 1;
}

/* ─── Input Fields ─── */
.auth-input {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px 14px 44px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.auth-input::selection {
  background: rgba(0,245,196,0.2);
  color: var(--white);
}
.auth-input::placeholder {
  color: var(--gray2);
  font-weight: 400;
}
.auth-input:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}
.auth-input:focus {
  border-color: rgba(0,245,196,0.3);
  background: rgba(0,245,196,0.02);
  box-shadow:
    0 0 0 1px rgba(0,245,196,0.06),
    0 0 30px rgba(0,245,196,0.03),
    inset 0 2px 4px rgba(0,0,0,0.1);
}
.auth-input.error {
  border-color: rgba(255,80,80,0.3);
  box-shadow: 0 0 0 1px rgba(255,80,80,0.06);
  animation: auth-shake 0.4s ease;
}
.auth-input.error:focus {
  border-color: rgba(255,80,80,0.45);
  box-shadow: 0 0 0 1px rgba(255,80,80,0.1), 0 0 24px rgba(255,80,80,0.04);
}
.auth-input.success {
  border-color: rgba(0,245,196,0.3);
  box-shadow: 0 0 0 1px rgba(0,245,196,0.06);
}

@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ─── Password Toggle ─── */
.auth-pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--gray2);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
  border-radius: 6px;
  opacity: 0.6;
}
.auth-pw-toggle:hover {
  color: var(--gray);
  opacity: 1;
  background: rgba(255,255,255,0.03);
}

/* ─── Password Strength Indicator ─── */
.auth-pw-strength {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 2px 0;
}
.auth-pw-strength.visible { display: flex; }
.auth-pw-strength-bar {
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}
.auth-pw-strength-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.auth-pw-strength-fill.weak {
  width: 25%;
  background: linear-gradient(90deg, #ff5050, #ff7070);
  box-shadow: 0 0 8px rgba(255,80,80,0.3);
}
.auth-pw-strength-fill.fair {
  width: 50%;
  background: linear-gradient(90deg, #ff8c42, #f5a623);
  box-shadow: 0 0 8px rgba(245,166,35,0.3);
}
.auth-pw-strength-fill.good {
  width: 75%;
  background: linear-gradient(90deg, #f5a623, #22c55e);
  box-shadow: 0 0 8px rgba(34,197,94,0.3);
}
.auth-pw-strength-fill.strong {
  width: 100%;
  background: linear-gradient(90deg, #22c55e, var(--accent));
  box-shadow: 0 0 8px rgba(0,245,196,0.3);
}
.auth-pw-strength-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}
.auth-pw-strength-label.weak { color: #ff5050; }
.auth-pw-strength-label.fair { color: #f5a623; }
.auth-pw-strength-label.good { color: #22c55e; }
.auth-pw-strength-label.strong { color: var(--accent); }

/* ─── Form Options (Remember me + Forgot) ─── */
.auth-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}
.auth-remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.auth-remember input[type="checkbox"]:hover {
  border-color: rgba(255,255,255,0.25);
}
.auth-remember input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,245,196,0.15);
}
.auth-remember input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-5' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-5' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.auth-remember-label {
  font-size: 0.8rem;
  color: var(--gray);
  user-select: none;
}
.auth-forgot-link {
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: all 0.2s ease;
  font-weight: 500;
  padding: 2px 4px;
  border-radius: 4px;
}
.auth-forgot-link:hover {
  opacity: 0.8;
  background: rgba(0,245,196,0.04);
}

/* ─── Auth Submit Button ─── */
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 15px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  margin-top: 2px;
}
.auth-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.auth-submit::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.auth-submit:hover::before { opacity: 1; }
.auth-submit:hover::after {
  opacity: 1;
  transform: scale(1);
}
.auth-submit:hover {
  box-shadow:
    0 0 50px rgba(0,245,196,0.3),
    0 8px 32px rgba(0,245,196,0.15);
  transform: translateY(-2px);
}
.auth-submit:active {
  transform: translateY(0) scale(0.98);
}
.auth-submit.loading {
  pointer-events: none;
  opacity: 0.9;
}
.auth-submit.loading .auth-btn-text,
.auth-submit.loading .auth-btn-icon { display: none; }
.auth-submit.loading .auth-btn-spinner { display: inline-block; }
.auth-btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(4,4,4,0.15);
  border-top-color: #040404;
  border-radius: 50%;
  animation: auth-spin 0.6s linear infinite;
  flex-shrink: 0;
}
@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

/* ─── Auth Divider ─── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 6px 0 2px;
}
.auth-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
.auth-divider-text {
  font-size: 0.7rem;
  color: var(--gray2);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ─── Social Buttons ─── */
.auth-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--gray);
  position: relative;
  overflow: hidden;
}
.auth-social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.auth-social-btn:hover::before { opacity: 1; }
.auth-social-btn:hover {
  color: var(--white);
  transform: translateY(-1px);
}
.auth-social-btn svg {
  flex-shrink: 0;
}
.auth-social-btn.loading {
  pointer-events: none;
  opacity: 0.5;
  position: relative;
}
.auth-social-btn.loading span {
  visibility: hidden;
}
.auth-social-btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--gray2);
  border-radius: 50%;
  animation: auth-spin 0.6s linear infinite;
}
.auth-social-btn.google:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 4px 20px rgba(255,255,255,0.03);
}
.auth-social-btn.github:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 4px 20px rgba(255,255,255,0.03);
}

/* ─── Terms Checkbox ─── */
.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 2px 0;
}
.auth-terms input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin-top: 1px;
}
.auth-terms input[type="checkbox"]:hover {
  border-color: rgba(255,255,255,0.25);
}
.auth-terms input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,245,196,0.15);
}
.auth-terms input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-5' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-5' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.auth-terms-label {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
  user-select: none;
}
.auth-terms-label a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.auth-terms-label a:hover { opacity: 0.8; }

/* ─── Auth Footer ─── */
.auth-form-footer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.auth-form-footer button {
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 2px 4px;
  border-radius: 4px;
}
.auth-form-footer button:hover {
  background: rgba(0,245,196,0.04);
}

/* ─── Auth Messages ─── */
.auth-message {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  animation: auth-msg-in 0.35s ease;
}
.auth-message.show { display: flex; }
.auth-message.error {
  background: rgba(255,80,80,0.05);
  border: 1px solid rgba(255,80,80,0.12);
  color: rgba(255,255,255,0.7);
}
.auth-message.error svg {
  color: #ff5050;
  flex-shrink: 0;
  margin-top: 2px;
}
.auth-message.success {
  background: rgba(0,245,196,0.05);
  border: 1px solid rgba(0,245,196,0.12);
  color: rgba(255,255,255,0.7);
}
.auth-message.success svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.auth-message svg { margin-top: 2px; flex-shrink: 0; }
@keyframes auth-msg-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Forgot Password Success ─── */
.auth-forgot-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px 0;
}
.auth-forgot-success.show {
  display: flex;
  animation: auth-msg-in 0.4s ease;
}
.auth-forgot-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,245,196,0.08);
  border: 1px solid rgba(0,245,196,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.auth-forgot-success-text {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 380px;
}

/* ════════════════════════════════════════════
   MOBILE AUTH LINK
════════════════════════════════════════════ */
.mobile-auth-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gray);
  transition: all 0.22s ease;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  margin-top: 4px;
}
.mobile-auth-link:hover {
  background: rgba(255,255,255,0.03);
  color: var(--white);
}
.mobile-auth-link:active {
  background: rgba(0,245,196,0.08);
  color: var(--white);
}
.mobile-auth-link svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 768px) {
  .btn-auth { display: none; }
  .nav-user-avatar.visible { display: flex; }
  .auth-ambient { display: none; }
  .auth-modal {
    max-width: 100%;
    border-radius: 20px;
    margin: 12px;
    max-height: 85vh;
  }
  .auth-inner {
    padding: 32px 24px 28px;
  }
  .auth-title {
    font-size: 1.3rem;
  }
  .auth-logo img { width: 24px; height: 24px; }
  .auth-logo-text { font-size: 0.8rem; }
  .auth-subtitle { font-size: 0.82rem; }
  .user-dropdown {
    width: 240px;
    right: 0;
  }
  .auth-form-options {
    flex-wrap: wrap;
    gap: 8px;
  }
  .auth-submit { padding: 14px 20px; }
}
@media (max-width: 480px) {
  .auth-inner {
    padding: 26px 18px 24px;
  }
  .auth-header { margin-bottom: 24px; }
  .auth-title {
    font-size: 1.15rem;
  }
  .auth-logo {
    margin-bottom: 16px;
    padding: 4px 12px 4px 4px;
  }
  .auth-logo img { width: 22px; height: 22px; }
  .auth-logo-text { font-size: 0.75rem; }
  .auth-tab {
    font-size: 0.8rem;
    padding: 9px 10px;
  }
  .auth-tabs { margin-bottom: 22px; }
  .auth-form { gap: 16px; }
  .auth-input {
    font-size: 0.86rem;
    padding: 12px 14px 12px 40px;
  }
  .auth-input-icon { left: 12px; }
  .auth-submit {
    padding: 13px 18px;
    font-size: 0.87rem;
  }
  .auth-social-btn {
    padding: 11px 14px;
    font-size: 0.84rem;
  }
  .user-dropdown {
    width: 220px;
    right: -4px;
  }
  .auth-form-footer {
    font-size: 0.78rem;
    margin-top: 20px;
    padding-top: 16px;
  }
  .auth-divider { gap: 14px; }
  .auth-divider-text { font-size: 0.65rem; }
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGE — Clean centered auth experience
   Used by login.html, signup.html, forgot-password.html
   ════════════════════════════════════════════════════════════════ */

.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 24px;
  background: var(--bg);
  position: relative;
}

.auth-page::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(0,245,196,0.035) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  background: rgba(12,16,16,0.65);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(0,245,196,0.02),
    0 32px 64px -12px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
  animation: authCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Logo ─── */
.auth-page .auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-page .auth-logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-page .auth-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.auth-page .auth-logo span {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

/* ─── Header ─── */
.auth-page .auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-page .auth-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.auth-page .auth-subtitle {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ─── Form ─── */
.auth-page .auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── Messages ─── */
.auth-page .auth-message {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  animation: authFadeIn 0.25s ease;
}

.auth-page .auth-message.show { display: flex; }

.auth-page .auth-message.error {
  background: rgba(255,80,80,0.06);
  border: 1px solid rgba(255,80,80,0.1);
  color: rgba(255,255,255,0.7);
}

.auth-page .auth-message.success {
  background: rgba(0,245,196,0.06);
  border: 1px solid rgba(0,245,196,0.1);
  color: rgba(255,255,255,0.7);
}

.auth-page .auth-message svg { flex-shrink: 0; margin-top: 1px; }
.auth-page .auth-message.error svg { color: #ff5050; }
.auth-page .auth-message.success svg { color: var(--accent); }

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

/* ─── Field ─── */
.auth-page .auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-page .auth-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray);
}

.auth-page .auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-page .auth-forgot {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.auth-page .auth-forgot:hover {
  opacity: 0.7;
}

/* ─── Input ─── */
.auth-page .auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.auth-page .auth-input::placeholder {
  color: var(--gray2);
}

.auth-page .auth-input:hover {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}

.auth-page .auth-input:focus {
  border-color: var(--accent);
  background: rgba(0,245,196,0.02);
  box-shadow: 0 0 0 2px rgba(0,245,196,0.06);
}

/* ─── Password Wrapper ─── */
.auth-page .auth-pw {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-page .auth-pw .auth-input {
  padding-right: 40px;
}

.auth-page .auth-pw-toggle {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--gray2);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  border-radius: 4px;
}

.auth-page .auth-pw-toggle:hover {
  color: var(--gray);
}

/* ─── Checkbox ─── */
.auth-page .auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 2px 0;
}

.auth-page .auth-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.auth-page .auth-check input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.auth-page .auth-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--bg);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-5' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-5' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.auth-page .auth-check span {
  font-size: 0.82rem;
  color: var(--gray);
  user-select: none;
}

.auth-page .auth-check.terms {
  align-items: flex-start;
}

.auth-page .auth-check.terms input[type="checkbox"] {
  margin-top: 2px;
}

.auth-page .auth-check.terms span {
  font-size: 0.8rem;
  line-height: 1.5;
}

.auth-page .auth-check.terms a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-page .auth-check.terms a:hover {
  opacity: 0.7;
}

/* ─── Submit Button ─── */
.auth-page .auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: #040404;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  position: relative;
}

.auth-page .auth-btn:hover {
  background: #00d4b0;
  box-shadow: 0 0 28px rgba(0,245,196,0.15);
}

.auth-page .auth-btn:active {
  transform: scale(0.98);
}

.auth-page .auth-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.auth-page .auth-btn.loading .auth-btn-text { display: none; }
.auth-page .auth-btn.loading .auth-btn-spinner { display: inline-block; }

.auth-page .auth-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(4,4,4,0.15);
  border-top-color: #040404;
  border-radius: 50%;
  animation: authSpin 0.6s linear infinite;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

/* ─── Divider ─── */
.auth-page .auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0;
}

.auth-page .auth-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.auth-page .auth-divider-text {
  font-size: 0.75rem;
  color: var(--gray2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  white-space: nowrap;
}

/* ─── Social ─── */
.auth-page .auth-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-page .auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--gray);
}

.auth-page .auth-social-btn:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: var(--white);
}

.auth-page .auth-social-btn svg {
  flex-shrink: 0;
}

/* ─── Footer Text ─── */
.auth-page .auth-footer-text {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.auth-page .auth-footer-text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.auth-page .auth-footer-text a:hover {
  opacity: 0.7;
}

/* ─── Legal ─── */
.auth-page .auth-legal {
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--gray2);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ─── Forgot Password Success ─── */
.auth-page .auth-forgot-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 12px 0;
}

.auth-page .auth-forgot-success.show {
  display: flex;
}

.auth-page .auth-forgot-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,245,196,0.08);
  border: 1px solid rgba(0,245,196,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.auth-page .auth-forgot-success-text {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 360px;
}

/* ─── Password Strength (signup) ─── */
.auth-page .auth-pw-strength {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 2px 0;
}

.auth-page .auth-pw-strength.visible { display: flex; }

.auth-page .auth-pw-bar {
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.auth-page .auth-pw-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  transition: all 0.3s ease;
}

.auth-page .auth-pw-fill.weak { width: 25%; background: #ff5050; }
.auth-page .auth-pw-fill.fair { width: 50%; background: #f5a623; }
.auth-page .auth-pw-fill.good { width: 75%; background: #22c55e; }
.auth-page .auth-pw-fill.strong { width: 100%; background: var(--accent); }

.auth-page .auth-pw-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.auth-page .auth-pw-label.weak { color: #ff5050; }
.auth-page .auth-pw-label.fair { color: #f5a623; }
.auth-page .auth-pw-label.good { color: #22c55e; }
.auth-page .auth-pw-label.strong { color: var(--accent); }

/* ─── Password Requirements Checklist ─── */
.auth-page .auth-pw-reqs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 0 0;
}

.auth-page .auth-pw-req {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 450;
  color: rgba(229, 237, 233, 0.38);
  transition: color 0.25s ease;
  line-height: 1.4;
}

.auth-page .auth-pw-req.met {
  color: var(--auth-mint);
}

.auth-page .auth-pw-req-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.25s ease, color 0.25s ease;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 520px) {
  .auth-page {
    padding: 16px;
  }

  .auth-card {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }

  .auth-page .auth-title {
    font-size: 1.2rem;
  }

  .auth-page .auth-logo {
    margin-bottom: 24px;
  }
}

/* ════════════════════════════════════════════
   ACCESSIBILITY
   ════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   STANDALONE AUTH PAGES — Premium SaaS rebuild
   Used by pages/login.html and pages/signup.html
   ════════════════════════════════════════════════════════════════ */

body.auth-page {
  --auth-bg: #050706;
  --auth-panel: rgba(9, 13, 12, 0.86);
  --auth-panel-strong: rgba(15, 20, 18, 0.92);
  --auth-border-soft: rgba(255, 255, 255, 0.08);
  --auth-border-focus: rgba(75, 255, 213, 0.62);
  --auth-text: #f7faf8;
  --auth-muted: rgba(229, 237, 233, 0.64);
  --auth-faint: rgba(229, 237, 233, 0.38);
  --auth-mint: #67f7d4;
  --auth-mint-2: #a8ffe8;

  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 40px 24px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(103, 247, 212, 0.16), transparent 28rem),
    radial-gradient(circle at 78% 78%, rgba(113, 99, 255, 0.1), transparent 24rem),
    radial-gradient(circle at 16% 82%, rgba(255, 255, 255, 0.055), transparent 20rem),
    linear-gradient(145deg, #050706 0%, #080d0c 48%, #040505 100%);
  color: var(--auth-text);
  font-family: 'Inter', 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 72%);
  pointer-events: none;
}

body.auth-page::after {
  content: '';
  position: fixed;
  inset: auto 50% 8% auto;
  width: min(520px, 82vw);
  height: min(520px, 82vw);
  transform: translateX(50%);
  background: radial-gradient(circle, rgba(103, 247, 212, 0.1), transparent 66%);
  filter: blur(22px);
  pointer-events: none;
}

body.auth-page .auth-card {
  width: min(100%, 400px);
  max-width: 400px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    var(--auth-panel);
  border: 1px solid var(--auth-border-soft);
  border-radius: 18px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(103, 247, 212, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  position: relative;
  z-index: 1;
  animation: authCardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

body.auth-page .auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(103, 247, 212, 0.1), transparent 42%);
  pointer-events: none;
}

body.auth-page .auth-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 auto 22px;
  color: var(--auth-text);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

body.auth-page .auth-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(103, 247, 212, 0.2));
}

body.auth-page .auth-logo span {
  color: var(--auth-text);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

body.auth-page .auth-header {
  text-align: center;
  margin: 0 0 22px;
  position: relative;
  z-index: 1;
}

body.auth-page .auth-title {
  margin: 0 0 7px;
  color: var(--auth-text);
  font-family: 'Inter', sans-serif;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

body.auth-page .auth-subtitle {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

body.auth-page .auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: relative;
  z-index: 1;
}

body.auth-page .auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

body.auth-page .auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.auth-page .auth-label {
  color: rgba(247, 250, 248, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

body.auth-page .auth-forgot,
body.auth-page .auth-switch a {
  color: var(--auth-mint);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

body.auth-page .auth-forgot:hover,
body.auth-page .auth-switch a:hover {
  color: var(--auth-mint-2);
}

body.auth-page .auth-input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--auth-text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.auth-page .auth-input::placeholder {
  color: var(--auth-faint);
}

body.auth-page .auth-input:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

body.auth-page .auth-input:focus {
  border-color: var(--auth-border-focus);
  background: rgba(103, 247, 212, 0.045);
  box-shadow:
    0 0 0 3px rgba(103, 247, 212, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.auth-page .auth-pw {
  position: relative;
}

body.auth-page .auth-pw .auth-input {
  padding-right: 42px;
}

body.auth-page .auth-pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(247, 250, 248, 0.48);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.18s ease, background 0.18s ease;
}

body.auth-page .auth-pw-toggle:hover {
  color: var(--auth-text);
  background: rgba(255,255,255,0.055);
}

body.auth-page .auth-btn,
body.auth-page .auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

body.auth-page .auth-btn {
  margin-top: 2px;
  border: 0;
  color: #03110d;
  background: linear-gradient(135deg, #baffee 0%, #67f7d4 48%, #32d5b1 100%);
  box-shadow: 0 14px 34px rgba(50, 213, 177, 0.18);
  transition: transform 0.16s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.auth-page .auth-btn:hover {
  filter: brightness(1.035);
  box-shadow: 0 18px 42px rgba(50, 213, 177, 0.24);
  transform: translateY(-1px);
}

body.auth-page .auth-btn:active {
  transform: translateY(0);
}

body.auth-page .auth-btn.loading {
  pointer-events: none;
  filter: saturate(0.8);
}

body.auth-page .auth-btn.loading .auth-btn-text {
  display: none;
}

body.auth-page .auth-btn.loading .auth-btn-spinner {
  display: inline-block;
}

body.auth-page .auth-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(3, 17, 13, 0.2);
  border-top-color: #03110d;
  border-radius: 50%;
  animation: authSpin 0.65s linear infinite;
}

body.auth-page .auth-social-btn {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(247, 250, 248, 0.86);
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.16s ease;
}

body.auth-page .auth-social-btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

body.auth-page .auth-social-btn svg {
  flex-shrink: 0;
}

body.auth-page .auth-social-btn.loading {
  pointer-events: none;
  opacity: 0.5;
  position: relative;
}

body.auth-page .auth-social-btn.loading span {
  visibility: hidden;
}

body.auth-page .auth-social-btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: rgba(247, 250, 248, 0.6);
  border-radius: 50%;
  animation: authSpin 0.6s linear infinite;
}

body.auth-page .auth-switch {
  margin: 2px 0 0;
  color: var(--auth-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
}

/* ─── Hide chatbot & floating elements on auth pages ─── */
body.auth-page #nagriva-chat,
body.auth-page .chat-fab-wrapper,
body.auth-page #nagriva-floating-elements {
  display: none !important;
}

body.auth-page .auth-message {
  display: none;
  align-items: center;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.35;
}

body.auth-page .auth-message.show {
  display: flex;
}

body.auth-page .auth-message.error {
  border: 1px solid rgba(255, 94, 94, 0.2);
  background: rgba(255, 94, 94, 0.08);
  color: #ffd9d9;
}

body.auth-page .auth-message.success {
  border: 1px solid rgba(103, 247, 212, 0.22);
  background: rgba(103, 247, 212, 0.08);
  color: #d8fff5;
}

body.auth-page .auth-divider,
body.auth-page .auth-social,
body.auth-page .auth-legal,
body.auth-page .auth-check,
body.auth-page .auth-footer-text {
  display: none;
}

@media (max-width: 460px) {
  body.auth-page {
    padding: 14px;
  }

  body.auth-page .auth-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  body.auth-page .auth-title {
    font-size: 1.28rem;
  }

  body.auth-page .auth-pw-reqs {
    gap: 4px;
  }

  body.auth-page .auth-pw-req {
    font-size: 0.68rem;
    gap: 6px;
  }
}
