/* Premium authentication presentation. Scoped to public login and registration. */
.auth-experience-shell {
  --auth-ink: #102a43;
  --auth-copy: #52677a;
  --auth-blue: #040ecb;
  --auth-blue-hover: #2730db;
  display: grid;
  place-items: center;
  color: var(--auth-ink);
  background:
    radial-gradient(ellipse 48% 44% at 76% 48%, rgba(88, 121, 230, 0.1) 0%, transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 45%, #f0f4ff 100%);
  animation: none;
}

.auth-experience-shell::before {
  inset: 68% 0 0;
  background-image:
    linear-gradient(rgba(16, 42, 67, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 67, 0.012) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(transparent, #000);
}

.auth-experience-container {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 6vh, 5rem);
}

.auth-experience {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(100%, 68rem);
  margin-inline: auto;
}

.auth-experience--single {
  display: block;
  width: min(100%, 31rem);
}

.auth-experience--single .auth-form-column {
  width: 100%;
  justify-self: auto;
}

.auth-status {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #d8a7ad;
  border-radius: 0.7rem;
  background: #fff4f5;
  color: #8d2432;
  font-size: 0.8rem;
  line-height: 1.5;
}

.auth-form-column {
  width: min(100%, 36rem);
  justify-self: end;
}

.auth-experience--login .auth-form-column {
  width: min(100%, 31rem);
}

.auth-experience .auth-brand {
  margin-bottom: 1.5rem;
}

.auth-experience .auth-brand .official-brand-logo {
  width: clamp(12rem, 20vw, 15rem);
  height: auto;
  object-fit: contain;
}

.auth-card--premium {
  padding: clamp(1.75rem, 4vw, 2.7rem);
  border: 1px solid rgba(16, 42, 67, 0.11);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1.75rem 4.5rem rgba(28, 50, 79, 0.11), 0 0.35rem 1.1rem rgba(28, 50, 79, 0.035), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  animation: auth-card-arrival 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-heading,
.login-welcome {
  margin-bottom: 1.6rem;
}

.auth-kicker,
.auth-benefit-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-kicker { color: var(--auth-blue); }

.auth-card--premium h1 {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(2rem, 4vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.login-welcome-back {
  margin: 0.65rem 0 0.15rem;
  color: #1d3d5a;
  font-size: 1rem;
  font-weight: 720;
}

.auth-card--premium .auth-muted {
  margin: 0;
  color: var(--auth-copy);
  font-size: 0.92rem;
  line-height: 1.6;
}

.morning-focus-card {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(4, 14, 203, 0.11);
  border-left: 2px solid #4051df;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(246, 248, 255, 0.94), rgba(255, 255, 255, 0.94));
  box-shadow: 0 0.45rem 1.2rem rgba(35, 55, 83, 0.035);
}

.morning-focus-card span {
  margin-bottom: 0.25rem;
  color: #61758a;
  font-size: 0.63rem;
}

.morning-focus-card p {
  margin: 0;
  color: #1d3d5a;
  font-size: 0.86rem;
  line-height: 1.5;
}

.auth-form,
.auth-form-grid {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1.05rem;
}

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

.auth-form-grid .auth-form-group {
  margin-bottom: 0;
}

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

.auth-experience .form-label,
.auth-experience .form-check-label {
  margin-bottom: 0.42rem;
  color: #263f58;
  font-size: 0.78rem;
  font-weight: 730;
  line-height: 1.3;
}

.auth-experience .form-control {
  min-height: 3.2rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd7e4;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--auth-ink);
  font-size: 0.92rem;
  line-height: 1.4;
  box-shadow: inset 0 1px 2px rgba(16, 42, 67, 0.025);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.auth-experience .form-control::placeholder {
  color: #8392a3;
  opacity: 1;
}

.auth-experience .form-control:hover {
  border-color: #aebdcd;
}

.auth-experience .form-control:focus {
  border-color: #4051df;
  background: #fff;
  color: var(--auth-ink);
  box-shadow: 0 0 0 0.22rem rgba(4, 14, 203, 0.11), 0 0.45rem 1.2rem rgba(31, 52, 82, 0.05);
}

.auth-experience .form-control.is-invalid {
  border-color: #b83b4a;
  background-image: none;
}

.auth-experience .form-control.is-invalid:focus {
  box-shadow: 0 0 0 0.22rem rgba(184, 59, 74, 0.11);
}

.auth-experience .invalid-feedback {
  margin-top: 0.38rem;
  color: #a82f3f;
  font-size: 0.75rem;
  font-weight: 620;
  line-height: 1.4;
}

.auth-experience .password-control .form-control {
  border-radius: 0.7rem 0 0 0.7rem;
}

.auth-experience .password-toggle {
  min-width: 4.4rem;
  border: 1px solid #cbd7e4;
  border-left: 0;
  border-radius: 0 0.7rem 0.7rem 0;
  background: #f6f8fc;
  color: #31506d;
  font-size: 0.76rem;
  font-weight: 760;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.auth-experience .password-toggle:hover,
.auth-experience .password-toggle:focus-visible {
  border-color: #9eadd0;
  background: #edf1ff;
  color: var(--auth-blue);
}

.auth-forgot-link {
  margin-bottom: 0.42rem;
  color: #4051b8;
  font-size: 0.73rem;
  font-weight: 680;
}

.auth-experience .form-link {
  color: #2730b8;
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color 160ms ease;
}

.auth-experience .form-link:hover {
  color: #040aa8;
  text-decoration: underline;
}

.login-options {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.2rem;
  margin: -0.15rem 0 1.25rem;
}

.auth-experience .form-check-input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  border-color: #9faec0;
  background-color: #fff;
}

.auth-experience .form-check-input:checked {
  border-color: var(--auth-blue);
  background-color: var(--auth-blue);
}

.auth-experience .form-check-input:focus {
  border-color: #4051df;
  box-shadow: 0 0 0 0.22rem rgba(4, 14, 203, 0.12);
}

.auth-experience .form-check-label {
  margin: 0;
}

.auth-experience .btn-primary {
  min-height: 3.25rem;
  border-color: var(--auth-blue);
  border-radius: 0.72rem;
  background: linear-gradient(135deg, #2730db, #040ecb 72%, #09119d);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 780;
  letter-spacing: -0.01em;
  box-shadow: 0 0.8rem 2rem rgba(4, 14, 203, 0.18), inset 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease, background-color 220ms ease;
}

.auth-experience .btn-primary:hover,
.auth-experience .btn-primary:focus-visible {
  border-color: #2730db;
  background: linear-gradient(135deg, #3943e2, #1823d5 72%, #111aa9);
  box-shadow: 0 1rem 2.3rem rgba(4, 14, 203, 0.23), inset 0 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.auth-experience .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0.35rem 1rem rgba(4, 14, 203, 0.14);
}

.auth-experience .btn-primary:disabled {
  border-color: #929bbd;
  background: #aeb5cc;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.password-hint {
  margin: 0 0 1rem;
  color: #64778a;
  font-size: 0.72rem;
  line-height: 1.5;
}

.auth-consent {
  margin: 0 0 1rem;
  color: #61758a;
  font-size: 0.72rem;
  line-height: 1.55;
}

.auth-reassurance {
  max-width: 26rem;
  margin: 0.9rem auto 0;
  color: #6b7e91;
  font-size: 0.7rem;
  line-height: 1.5;
}

.auth-switch {
  margin: 1.5rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(16, 42, 67, 0.085);
  color: #62768a;
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-benefit-panel {
  position: relative;
  display: flex;
  min-height: 31rem;
  overflow: hidden;
  padding: clamp(2.25rem, 4vw, 3.25rem);
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(112, 170, 255, 0.25), transparent 34%),
    radial-gradient(circle at 15% 90%, rgba(116, 92, 225, 0.25), transparent 34%),
    linear-gradient(145deg, #102a63 0%, #111a88 55%, #2329a8 100%);
  color: #fff;
  box-shadow: 0 2rem 5rem rgba(18, 34, 87, 0.2), inset 0 1px rgba(255, 255, 255, 0.16);
  animation: auth-benefit-arrival 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 100ms both;
}

.auth-benefit-panel::before {
  content: "";
  position: absolute;
  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;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
  pointer-events: none;
}

.auth-benefit-panel > * {
  position: relative;
  z-index: 1;
}

.auth-benefit-kicker {
  color: #bccbff;
}

.auth-benefit-panel h2 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.auth-benefit-panel > div > p:last-child {
  max-width: 30rem;
  margin: 1rem 0 0;
  color: rgba(237, 242, 255, 0.76);
  font-size: 0.88rem;
  line-height: 1.65;
}

.auth-benefit-panel ul {
  display: grid;
  gap: 0.8rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.auth-benefit-panel li {
  position: relative;
  padding-left: 1.75rem;
  color: rgba(255, 255, 255, 0.91);
  font-size: 0.86rem;
  font-weight: 650;
}

.auth-benefit-panel li::before {
  content: "✓";
  position: absolute;
  top: -0.08rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid rgba(181, 210, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #dbe8ff;
  font-size: 0.63rem;
}

.auth-market-line {
  margin: 0;
  color: rgba(226, 234, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.06em;
}

.auth-market-line span {
  margin-inline: 0.35rem;
  color: rgba(154, 180, 255, 0.72);
}

.auth-experience :is(a, button, input):focus-visible {
  outline: 3px solid rgba(4, 14, 203, 0.3);
  outline-offset: 3px;
}

@keyframes auth-card-arrival {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-benefit-arrival {
  from { opacity: 0; transform: translateX(7px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 991.98px) {
  .auth-experience-shell { display: block; }
  .auth-experience-container { display: grid; min-height: 100vh; place-items: center; }
  .auth-experience { display: block; width: min(100%, 36rem); }
  .auth-form-column,
  .auth-experience--login .auth-form-column { width: 100%; justify-self: auto; }
  .auth-benefit-panel { display: none; }
}

@media (max-width: 575.98px) {
  .auth-experience-container { padding: 1.5rem 0.9rem 2.25rem; }
  .auth-experience .auth-brand { margin-bottom: 1.1rem; }
  .auth-experience .auth-brand .official-brand-logo { width: 11.5rem; }
  .auth-card--premium { padding: 1.45rem 1.15rem; border-radius: 1rem; }
  .auth-heading,
  .login-welcome { margin-bottom: 1.35rem; }
  .auth-card--premium h1 { font-size: 2rem; }
  .morning-focus-card { margin-bottom: 1.3rem; }
  .auth-form-grid { --bs-gutter-y: 0.95rem; }
  .auth-experience .form-control { min-height: 3.25rem; }
  .auth-switch { margin-top: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card--premium,
  .auth-benefit-panel {
    animation: none;
  }

  .auth-experience *,
  .auth-experience *::before,
  .auth-experience *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .auth-experience .btn-primary:hover,
  .auth-experience .btn-primary:focus-visible {
    transform: none;
  }
}
