:root {
  color-scheme:light;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;
  color:#1d1d1f;
  background:#f5f5f7;
}

* { box-sizing:border-box; }

body {
  min-height:100vh;
  margin:0;
  background:
    radial-gradient(circle at 25% 15%,rgba(0,113,227,.08),transparent 32%),
    radial-gradient(circle at 78% 80%,rgba(218,165,32,.08),transparent 30%),
    #f5f5f7;
}

button,input { font:inherit; }

.auth-shell {
  display:grid;
  min-height:100vh;
  place-items:center;
  padding:24px;
}

.auth-card {
  width:min(100%,440px);
  padding:36px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:28px;
  background:rgba(255,255,255,.92);
  box-shadow:0 24px 70px rgba(0,0,0,.1);
  backdrop-filter:blur(20px);
}

.auth-logo {
  display:block;
  width:120px;
  height:58px;
  margin:0 auto 24px;
  border-radius:14px;
  object-fit:cover;
  box-shadow:0 5px 20px rgba(178,131,18,.13);
}

.eyebrow {
  color:#0071e3;
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-align:center;
}

h1 {
  margin:10px 0 8px;
  font-size:34px;
  letter-spacing:-.035em;
  text-align:center;
}

#auth-description {
  margin:0 0 28px;
  color:#6e6e73;
  line-height:1.5;
  text-align:center;
}

form { display:grid; gap:9px; }

label {
  margin-top:7px;
  color:#424245;
  font-size:14px;
  font-weight:600;
}

input {
  width:100%;
  min-height:48px;
  padding:0 14px;
  border:1px solid #d2d2d7;
  border-radius:12px;
  color:#1d1d1f;
  background:#fff;
  outline:0;
  transition:border-color .18s ease,box-shadow .18s ease;
}

input:focus {
  border-color:#0071e3;
  box-shadow:0 0 0 4px rgba(0,113,227,.13);
}

.password-field { position:relative; }
.password-field input { padding-right:90px; }
.password-field button {
  position:absolute;
  top:6px;
  right:7px;
  min-height:36px;
  padding:0 10px;
  border:0;
  border-radius:9px;
  color:#0066cc;
  background:#f0f7ff;
  cursor:pointer;
}

#confirmation-field { display:grid; gap:9px; }
#confirmation-field[hidden] { display:none; }

.help,.error {
  margin:5px 0;
  font-size:13px;
  line-height:1.45;
}

.help { color:#6e6e73; }
.error {
  padding:11px 12px;
  border:1px solid #ffd0d2;
  border-radius:11px;
  color:#b4232c;
  background:#fff3f3;
}

.primary {
  min-height:48px;
  margin-top:12px;
  border:0;
  border-radius:999px;
  color:#fff;
  background:#0071e3;
  box-shadow:0 8px 20px rgba(0,113,227,.2);
  cursor:pointer;
  font-weight:650;
  transition:transform .18s ease,background .18s ease;
}

.primary:hover { background:#0077ed; transform:translateY(-1px); }
.primary:active { transform:scale(.985); }
.primary:disabled { cursor:wait; opacity:.65; transform:none; }

.security-note {
  margin:24px 0 0;
  color:#86868b;
  font-size:12px;
  text-align:center;
}

@media(max-width:520px) {
  .auth-shell { padding:14px; }
  .auth-card { padding:28px 20px; border-radius:22px; }
  h1 { font-size:29px; }
}

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