/* Shared sign-in / registration / admin PIN pages — Via Jhane Digital (navy / gold / teal) */
:root {
  --as-navy-950: #06142b;
  --as-navy-900: #0b2447;
  --as-navy-800: #13315c;
  --as-gold: #f2a900;
  --as-gold-400: #f6bb33;
  --as-teal: #12b3a6;
  --as-teal-600: #0e9488;
  --as-ease: cubic-bezier(.22, 1, .36, 1);
}

.auth-shell {
  min-height: 100%;
  background:
    radial-gradient(ellipse 70% 60% at 12% 0%, rgba(18, 179, 166, 0.20), transparent 55%),
    radial-gradient(ellipse 60% 55% at 88% 100%, rgba(242, 169, 0, 0.16), transparent 55%),
    linear-gradient(160deg, #06142b 0%, #0b2447 50%, #13315c 100%);
}

.auth-shell-grid {
  display: grid;
  min-height: 100vh;
}
@media (min-width: 1024px) {
  .auth-shell-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

/* ---------- Brand / image side ---------- */
.auth-shell-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem;
  color: #fff;
  overflow: hidden;
  background-color: #0b2447;
  background-size: cover;
  background-position: center;
}
.auth-shell-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(6, 20, 43, 0.93) 0%, rgba(11, 36, 71, 0.82) 45%, rgba(18, 179, 166, 0.40) 100%);
}
.auth-shell-brand::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 38rem;
  height: 38rem;
  background: radial-gradient(circle, rgba(242, 169, 0, 0.18), transparent 60%);
  filter: blur(20px);
  animation: asFloat 14s ease-in-out infinite;
  pointer-events: none;
}
.auth-shell-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  margin: 0 auto;
  animation: asFade 0.8s var(--as-ease) both;
}
@media (min-width: 1024px) {
  .auth-shell-brand-inner { margin: 0; }
}
.auth-shell-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 3rem;
  max-width: 11rem;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  box-shadow: none;
}
.auth-shell-logo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 11rem;
  background: transparent;
  object-fit: contain;
}
.auth-shell-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--as-gold-400);
}
.auth-shell-brand-title {
  margin-top: 1.1rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.auth-shell-brand-copy {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.92);
}
.auth-shell-features {
  margin-top: 2rem;
  display: grid;
  gap: 0.7rem;
}
.auth-shell-feature {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(241, 245, 249, 0.95);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  padding: 0.65rem 0.85rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.auth-shell-feature-icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--as-gold-400), var(--as-gold));
  color: var(--as-navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Panel / form side ---------- */
.auth-shell-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  overflow: hidden;
}
.auth-shell-panel::before {
  content: "";
  position: absolute;
  width: 22rem; height: 22rem;
  left: -6rem; bottom: -8rem;
  background: radial-gradient(circle, rgba(18, 179, 166, 0.28), transparent 65%);
  filter: blur(30px);
  animation: asFloat 16s ease-in-out infinite reverse;
  pointer-events: none;
}
@media (min-width: 640px) {
  .auth-shell-panel { padding: 3rem 2rem; }
}

.auth-shell-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 27rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  overflow: hidden;
  animation: asRise 0.7s var(--as-ease) both;
}
.auth-shell-card-wide { max-width: 34rem; }
.auth-shell-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--as-gold), var(--as-teal));
}
.auth-shell-card-body { padding: 2rem 1.75rem; }
@media (min-width: 640px) {
  .auth-shell-card-body { padding: 2.25rem 2rem; }
}
.auth-shell-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--as-navy-900);
}
.auth-shell-card-sub {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

/* ---------- Audience toggle (signup) ---------- */
.auth-shell-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding: 0.35rem;
  background: rgba(11, 36, 71, 0.06);
  border-radius: 1rem;
}
.auth-shell-toggle a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.65rem 0.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.82rem;
  color: #64748b;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s var(--as-ease);
}
.auth-shell-toggle a small {
  font-weight: 500;
  font-size: 0.66rem;
  color: #94a3b8;
}
.auth-shell-toggle a:hover:not(.is-active) {
  color: var(--as-navy-900);
  background: rgba(255, 255, 255, 0.6);
}
.auth-shell-toggle a.is-active {
  background: #fff;
  color: var(--as-navy-900);
  box-shadow: 0 8px 18px -8px rgba(11, 36, 71, 0.45);
}
.auth-shell-toggle a.is-active small { color: var(--as-teal-600); }

/* ---------- Alerts ---------- */
.auth-shell-alert {
  margin-top: 1.25rem;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.auth-shell-alert--error { border: 1px solid #fecaca; background: #fff1f2; color: #9f1239; }
.auth-shell-alert--success { border: 1px solid #bbf7d0; background: #ecfdf5; color: #166534; }
.auth-shell-alert--info { border: 1px solid #bfdbfe; background: #eff6ff; color: #1e40af; }
.auth-shell-alert--warn { border: 1px solid #fde68a; background: #fffbeb; color: #92400e; }

/* ---------- Form ---------- */
.auth-shell-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.15rem;
}
.auth-shell-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}
.auth-shell-control { position: relative; }
.auth-shell-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.18s ease, transform 0.18s ease;
}
.auth-shell-control:focus-within .auth-shell-input-icon {
  color: var(--as-teal-600);
  transform: translateY(-50%) scale(1.08);
}
.auth-shell-field input,
.auth-shell-field select,
.auth-shell-field textarea {
  display: block;
  width: 100%;
  min-height: 2.85rem;
  border-radius: 0.8rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.65rem 0.95rem;
  font-size: 0.9375rem;
  color: #0f172a;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.auth-shell-control input,
.auth-shell-control select {
  padding-left: 2.6rem;
}
.auth-shell-field input::placeholder { color: #94a3b8; }
.auth-shell-field input:hover,
.auth-shell-field select:hover {
  border-color: #cbd5e1;
  background: #fff;
}
.auth-shell-field input:focus,
.auth-shell-field select:focus,
.auth-shell-field textarea:focus {
  outline: none;
  border-color: var(--as-teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(18, 179, 166, 0.18), 0 6px 18px -8px rgba(18, 179, 166, 0.45);
}
.auth-shell-fieldset {
  border-radius: 0.9rem;
  border: 1px solid rgba(18, 179, 166, 0.25);
  background: linear-gradient(180deg, rgba(18, 179, 166, 0.06) 0%, rgba(242, 169, 0, 0.05) 100%);
  padding: 1rem 1.1rem;
}
.auth-shell-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--as-teal-600);
}

/* ---------- Buttons ---------- */
.auth-shell-btn {
  position: relative;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  border-radius: 0.8rem;
  border: none;
  background: linear-gradient(135deg, var(--as-gold-400) 0%, var(--as-gold) 100%);
  color: var(--as-navy-950);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 26px -8px rgba(242, 169, 0, 0.55);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s var(--as-ease), filter 0.15s ease, box-shadow 0.15s ease;
}
.auth-shell-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -160%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
}
.auth-shell-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 16px 32px -8px rgba(242, 169, 0, 0.6);
}
.auth-shell-btn:hover::after { animation: asShine 0.9s var(--as-ease); }
.auth-shell-btn:active { transform: translateY(0) scale(0.99); }

.auth-shell-btn-secondary {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 0.8rem;
  border: 1.5px solid var(--as-navy-800);
  background: rgba(255, 255, 255, 0.7);
  color: var(--as-navy-900);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.auth-shell-btn-secondary:hover {
  background: var(--as-navy-900);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Footer / CTA box ---------- */
.auth-shell-card-foot {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.7);
  padding: 1rem 1.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}
.auth-shell-card-foot a {
  font-weight: 600;
  color: var(--as-teal-600);
  text-decoration: none;
}
.auth-shell-card-foot a:hover { text-decoration: underline; }
.auth-shell-cta-box {
  margin-top: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(18, 179, 166, 0.22);
  background: linear-gradient(180deg, rgba(18, 179, 166, 0.07) 0%, rgba(255, 255, 255, 0.6) 100%);
  padding: 1.15rem 1.25rem;
  text-align: center;
}

/* ---------- Mobile brand ---------- */
.auth-shell-mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .auth-shell-mobile-brand { display: none; }
}
.auth-shell-mobile-brand .auth-shell-logo {
  width: auto;
  height: 2.6rem;
  max-width: 9rem;
  background: transparent;
  box-shadow: none;
}

/* ---------- Animations ---------- */
@keyframes asFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes asRise { from { opacity: 0; transform: translateY(26px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes asShine { to { left: 160%; } }
@keyframes asFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
