:root {
  color-scheme: light;
  --ink: #302b39;
  --muted: #716c9e;
  --purple: #864fc4;
  --purple-dark: #6d3aa8;
  --green: #46a751;
  --line: #e3dced;
  --surface: rgba(255, 255, 255, 0.96);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -12%, rgba(134, 79, 196, .14), transparent 35%),
    radial-gradient(circle at 12% 84%, rgba(70, 167, 81, .09), transparent 26%),
    #faf8fc;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.entry-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(18px, 3vh, 34px) 20px 14px;
  overflow: hidden;
}

.entry-content {
  width: min(450px, 100%);
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: clamp(12px, 2vh, 20px);
}

.entry-logo { width: clamp(184px, 18vw, 232px); height: auto; display: block; }

.entry-heading { text-align: center; }

.entry-kicker {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.entry-heading h1 {
  margin: 7px 0 5px;
  font-size: clamp(32px, 4.5vh, 47px);
  line-height: 1.02;
  letter-spacing: -.052em;
}

.entry-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.7vh, 15px);
  line-height: 1.45;
}

.login-card {
  width: min(410px, 100%);
  display: grid;
  gap: 13px;
  padding: clamp(20px, 2.7vh, 28px);
  border: 1px solid rgba(134, 79, 196, .14);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 22px 62px rgba(71, 43, 100, .13);
  backdrop-filter: blur(12px);
}

.login-card-heading { text-align: center; }

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 99px;
  color: #378c42;
  background: #edf8ef;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.security-badge svg { width: 13px; }

.login-card-heading h2 { margin: 9px 0 2px; font-size: 24px; letter-spacing: -.035em; }
.login-card-heading p { margin: 0; color: var(--muted); font-size: 12px; }

.form-field { display: grid; gap: 6px; color: #454050; font-size: 12px; font-weight: 700; }

.input-frame {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: #9a91a6;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.input-frame:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(134, 79, 196, .11);
}

.input-frame svg, .privacy-note svg, .login-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.input-frame input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.input-frame input::placeholder { color: #b1aab9; }

.show-password {
  border: 0;
  padding: 5px;
  color: var(--purple-dark);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.login-status { min-height: 0; margin: -2px 0; color: #a13e36; font-size: 12px; text-align: center; }
.login-status:empty { display: none; }

.login-button {
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #7540b0);
  box-shadow: 0 10px 23px rgba(134, 79, 196, .23);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.login-button:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(134, 79, 196, .28); }
.login-button:disabled { opacity: .68; cursor: wait; transform: none; }
.login-button svg { width: 18px; }

.privacy-note {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #8c8496;
  font-size: 10px;
}

.privacy-note svg { width: 13px; }

footer { padding-top: 10px; color: #aaa2b2; font-size: 10px; text-align: center; }

@media (max-height: 720px) and (min-width: 600px) {
  .entry-shell { padding-top: 12px; }
  .entry-content { gap: 9px; }
  .entry-logo { width: 170px; }
  .entry-heading h1 { font-size: 31px; }
  .login-card { gap: 9px; padding: 16px 21px; }
  .login-card-heading h2 { margin-top: 6px; font-size: 20px; }
  .input-frame { min-height: 42px; }
  .login-button { min-height: 43px; }
}

@media (max-width: 599px) {
  .entry-shell { padding: max(16px, env(safe-area-inset-top)) 16px max(10px, env(safe-area-inset-bottom)); }
  .entry-content { gap: 12px; }
  .entry-logo { width: 184px; }
  .entry-heading h1 { font-size: 34px; }
  .entry-heading p { max-width: 330px; }
  .login-card { padding: 20px; border-radius: 17px; }
}

@media (max-height: 690px) and (max-width: 599px) {
  .entry-logo { width: 150px; }
  .entry-kicker { font-size: 8px; }
  .entry-heading h1 { margin-top: 4px; font-size: 28px; }
  .entry-heading p { font-size: 12px; }
  .login-card { gap: 8px; padding: 14px 17px; }
  .security-badge, .privacy-note { display: none; }
  .login-card-heading h2 { margin-top: 0; font-size: 19px; }
  .input-frame { min-height: 41px; }
  .login-button { min-height: 42px; }
}
