/* ── Auth Modal ── */
.auth-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(6,10,18,0.82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.auth-overlay.auth-visible { opacity: 1; }
.auth-overlay[hidden] { display: none !important; }

@keyframes auth-slide-up {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.auth-scroll {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.auth-card {
  background: linear-gradient(165deg, #141c2b 0%, #111827 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  width: 100%;
  position: relative; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.2),
    0 8px 24px rgba(0,0,0,0.35),
    0 32px 80px rgba(0,0,0,0.45);
  animation: auth-slide-up 0.32s cubic-bezier(0.22,1,0.36,1);
  padding: 36px 32px 32px;
}
.auth-card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-deep), rgba(37,99,235,0.5));
}
.auth-card-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.3); padding: 6px; border-radius: 8px;
  line-height: 1; transition: color 0.15s, background 0.15s;
}
.auth-card-close:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); }

.auth-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 8px;
}
.auth-card-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; letter-spacing: -0.4px;
  color: var(--text-primary); margin-bottom: 6px;
}
.auth-card-subtitle {
  font-size: 14px; color: rgba(255,255,255,0.45);
  line-height: 1.55; margin-bottom: 24px;
}
.auth-panel[hidden] { display: none !important; }

.auth-field-label {
  display: block; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.55); margin-bottom: 6px; letter-spacing: 0.2px;
}
.auth-input {
  display: block; width: 100%; height: 46px;
  padding: 0 16px; font-size: 15px;
  font-family: var(--font-body); color: var(--text-primary);
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-input::placeholder { color: rgba(255,255,255,0.22); }
.auth-input:focus {
  border-color: var(--accent-primary);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.12);
}
.auth-field-wrap { margin-bottom: 12px; }
.auth-field-error {
  color: #FCA5A5; font-size: 13px; margin-top: 6px;
  line-height: 1.4;
}

.auth-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px; padding: 0 20px;
  font-family: var(--font-body); font-size: var(--text-base); font-weight: 600;
  color: #fff; background: var(--brand-blue-action);
  border: none; border-radius: var(--radius-lg); cursor: pointer;
  box-shadow: var(--shadow-blue);
  transition: all var(--dur-base) var(--ease-out);
}
.auth-btn-primary:hover:not(:disabled) {
  background: var(--brand-blue-light);
  box-shadow: var(--shadow-blue);
}
.auth-btn-primary:active:not(:disabled) { transform: scale(0.98); }
.auth-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-divider {
  height: 1px; background: var(--border-dim);
  margin: 20px 0 16px;
}
.auth-security-note {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: rgba(255,255,255,0.32);
}
.auth-security-note svg { flex-shrink: 0; }

.auth-msg {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  font-size: 14px; line-height: 1.5; display: none;
}
.auth-msg--error {
  background: rgba(239,68,68,0.1);
  color: #FCA5A5; border: 1px solid rgba(239,68,68,0.15);
}
.auth-msg--visible { display: block; }

/* ── Request access card ── */
.auth-card-secondary {
  background: linear-gradient(165deg, #141c2b 0%, #111827 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  width: 100%;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: auth-slide-up 0.32s 0.06s cubic-bezier(0.22,1,0.36,1) both;
  padding: 28px 32px 24px;
}
.auth-card-secondary .auth-card-title {
  font-size: 18px; color: rgba(255,255,255,0.85);
}
.auth-card-secondary .auth-card-subtitle { margin-bottom: 18px; }

.auth-btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 46px; padding: 0 20px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--accent-primary); background: transparent;
  border: 1.5px solid var(--accent-border); border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.auth-btn-outline:hover {
  background: rgba(20,184,166,0.08);
  border-color: var(--accent-primary);
  color: var(--accent-light);
}
.auth-btn-outline:active { transform: scale(0.98); }
.auth-btn-outline:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.auth-req-actions {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
}
.auth-req-actions .auth-btn-outline { width: auto; flex: 1; }
.auth-btn-cancel {
  background: none; border: none;
  color: rgba(255,255,255,0.35); font-size: 14px;
  font-family: var(--font-body); cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color 0.15s;
}
.auth-btn-cancel:hover { color: rgba(255,255,255,0.65); }

.auth-contact-row {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.auth-contact-label {
  font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.4;
}
.auth-contact-label strong {
  display: block; font-size: 13px; color: rgba(255,255,255,0.6);
  font-weight: 500; font-family: monospace; letter-spacing: 0.2px;
}
.auth-btn-copy {
  flex-shrink: 0; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  padding: 5px 10px; font-size: 12px; font-family: var(--font-body);
  color: rgba(255,255,255,0.4); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.auth-btn-copy:hover {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}
.auth-btn-copy.copied {
  color: #6EE7B7; border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.1);
}

.auth-confirmation {
  padding: 20px 0 4px; text-align: center;
  color: #6EE7B7; font-size: 15px; line-height: 1.6;
}
.auth-confirmation strong { display: block; font-size: 17px; margin-bottom: 4px; }

/* ── Sign-in strip (shown when request form is open) ── */
.auth-signin-strip {
  text-align: center; animation: auth-slide-up 0.2s ease both;
}
.auth-signin-strip-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.35); font-size: 13px;
  font-family: var(--font-body); cursor: pointer; padding: 6px 0;
  letter-spacing: 0.1px; transition: color 0.15s;
}
.auth-signin-strip-btn:hover { color: rgba(255,255,255,0.65); }
.auth-signin-strip-btn span {
  text-decoration: underline; text-underline-offset: 2px;
}

.auth-footnote {
  margin-top: 20px; font-size: 13px;
  color: rgba(255,255,255,0.38); text-align: center;
}
.auth-footnote a { color: var(--accent-light); text-decoration: none; }
.auth-footnote a:hover { text-decoration: underline; }

/* Panel: sent confirmation */
.auth-sent-icon { margin-bottom: 14px; }
.auth-sent-body {
  color: rgba(255,255,255,0.65); font-size: 15px; line-height: 1.65;
  margin-bottom: 8px;
}
.auth-sent-body strong { color: var(--text-primary); }
.auth-sent-note { font-size: 13px; color: rgba(255,255,255,0.3); margin-bottom: 24px; }
.auth-back-link {
  background: none; border: none; cursor: pointer; padding: 0;
  color: rgba(255,255,255,0.38); font-size: 13px; font-family: var(--font-body);
  transition: color 0.15s;
}
.auth-back-link:hover { color: rgba(255,255,255,0.75); }

@media (max-width: 480px) {
  .auth-card { padding: 32px 20px 24px; }
  .auth-card-secondary { padding: 22px 20px 18px; }
}
