:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #eef2f8;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; }

button,
input { font: inherit; }

a { color: inherit; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(circle at 12% 10%, rgb(99 102 241 / 16%), transparent 30rem),
    radial-gradient(circle at 88% 88%, rgb(14 165 233 / 12%), transparent 28rem),
    #eef2f8;
}

.auth-layout {
  width: min(1120px, calc(100% - 2rem));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding: 3rem 0 2rem;
}

.auth-intro { padding: 1rem 0; }

.identity-brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: #182230;
  text-decoration: none;
}

.identity-brand > span:last-child { display: grid; line-height: 1.05; }
.identity-brand strong { font-size: 1.05rem; letter-spacing: .08em; }
.identity-brand small { margin-top: .18rem; color: #667085; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }

.identity-mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: .85rem;
  color: white;
  background: linear-gradient(145deg, #4f46e5, #2563eb);
  box-shadow: 0 10px 24px rgb(79 70 229 / 26%);
  font-weight: 800;
  font-size: 1.15rem;
}

.auth-intro-copy { max-width: 39rem; margin-top: clamp(4rem, 11vh, 7rem); }

.auth-eyebrow {
  margin: 0 0 .7rem;
  color: #4f46e5;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-intro h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(2.6rem, 5vw, 4.65rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.auth-intro-copy > p:last-child {
  max-width: 35rem;
  margin: 1.5rem 0 0;
  color: #475467;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.auth-trust { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.25rem; color: #344054; font-size: .88rem; font-weight: 650; }
.auth-trust span { display: inline-flex; align-items: center; gap: .5rem; }
.auth-trust i { width: .55rem; height: .55rem; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 4px rgb(18 183 106 / 12%); }

.auth-card {
  width: 100%;
  padding: clamp(1.7rem, 4vw, 2.6rem);
  border: 1px solid rgb(208 213 221 / 82%);
  border-radius: 1.35rem;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 30px 70px rgb(16 24 40 / 14%);
  backdrop-filter: blur(14px);
}

.auth-card-heading h2 { margin: 0; color: #101828; font-size: clamp(1.8rem, 4vw, 2.25rem); letter-spacing: -.035em; }
.auth-card-heading > p:last-child { margin: .65rem 0 0; color: #667085; line-height: 1.55; }

.auth-alert {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin-top: 1.35rem;
  padding: .85rem 1rem;
  border: 1px solid #fecdca;
  border-radius: .7rem;
  color: #912018;
  background: #fef3f2;
  font-size: .88rem;
  line-height: 1.45;
}

.auth-alert span { flex: 0 0 1.3rem; height: 1.3rem; display: grid; place-items: center; border-radius: 50%; color: white; background: #d92d20; font-weight: 800; }
.auth-alert p { margin: 0; }
.auth-alert strong { display: block; margin-bottom: .25rem; }
.auth-alert ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.auth-alert li + li { margin-top: .25rem; }

.auth-form { display: grid; gap: 1.15rem; margin-top: 1.8rem; }
.field { display: grid; gap: .48rem; }
.field label { color: #344054; font-size: .9rem; font-weight: 700; }
.field input {
  width: 100%;
  min-height: 3.1rem;
  padding: .75rem .9rem;
  border: 1px solid #d0d5dd;
  border-radius: .7rem;
  color: #101828;
  background: white;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input::placeholder { color: #98a2b3; }
.field input:focus { border-color: #6366f1; box-shadow: 0 0 0 4px rgb(99 102 241 / 12%); }
.field-hint { color: #667085; font-size: .76rem; line-height: 1.45; }

.remember-option { display: flex; gap: .65rem; align-items: flex-start; color: #475467; font-size: .86rem; line-height: 1.4; cursor: pointer; }
.remember-option input { width: 1rem; height: 1rem; margin: .1rem 0 0; accent-color: #4f46e5; }

.auth-submit {
  min-height: 3.15rem;
  border: 0;
  border-radius: .72rem;
  color: white;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  box-shadow: 0 10px 22px rgb(79 70 229 / 22%);
  cursor: pointer;
  font-weight: 750;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgb(79 70 229 / 28%); }
.auth-submit:focus-visible { outline: 3px solid rgb(99 102 241 / 32%); outline-offset: 3px; }
.auth-link-button { display: grid; place-items: center; margin-top: 1.5rem; text-decoration: none; }

.auth-register { margin: 1.35rem 0 0; color: #667085; text-align: center; font-size: .9rem; }
.auth-register a { color: #4338ca; font-weight: 750; text-underline-offset: .2rem; }

.auth-boundary { margin: 1.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid #eaecf0; color: #667085; font-size: .77rem; line-height: 1.55; text-align: center; }
.auth-footer { padding: 1.25rem; color: #667085; font-size: .78rem; text-align: center; }

.register-layout { padding-top: 2rem; }
.register-card { padding-block: clamp(1.5rem, 3vw, 2.2rem); }
.register-card .auth-form { gap: .9rem; margin-top: 1.35rem; }
.register-card .field input { min-height: 2.85rem; }
.register-card .auth-boundary { margin-top: 1.15rem; }

.confirmation-layout { grid-template-columns: minmax(320px, 34rem); justify-content: center; }
.confirmation-card { text-align: center; }
.confirmation-card h1 { margin: .4rem 0 .8rem; color: #101828; font-size: 2.15rem; letter-spacing: -.035em; }
.confirmation-card > p:not(.auth-eyebrow) { color: #475467; line-height: 1.65; }
.confirmation-mark {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  color: white;
  background: #12b76a;
  box-shadow: 0 0 0 8px rgb(18 183 106 / 12%);
  font-size: 1.65rem;
  font-weight: 800;
}

@media (max-width: 820px) {
  .auth-layout { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
  .auth-intro { text-align: center; }
  .identity-brand { justify-content: center; }
  .auth-intro-copy { margin: 2.5rem auto 0; }
  .auth-intro h1 { font-size: clamp(2.35rem, 11vw, 3.5rem); }
  .auth-trust { justify-content: center; }
  .auth-card { width: min(100%, 34rem); margin: 0 auto; }
  .confirmation-layout { display: grid; }
}

@media (max-width: 480px) {
  .auth-layout { width: min(100% - 1.2rem, 34rem); }
  .auth-intro-copy { margin-top: 2rem; }
  .auth-intro-copy > p:last-child, .auth-trust { display: none; }
  .auth-card { padding: 1.35rem; border-radius: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
