:root {
  --tassel-ink: #0d2043;
  --tassel-gold: #bb9a63;
  --tassel-ink-muted: rgba(13, 32, 67, 0.72);
  --tassel-surface: #ffffff;
  --tassel-bg: #f2f5fa;
  --tassel-border: rgba(13, 32, 67, 0.1);
  --tassel-danger: #b42318;
  --tassel-success: #1f6f54;
  --tassel-radius: 16px;
  --tassel-shadow: 0 18px 48px rgba(13, 32, 67, 0.1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(187, 154, 99, 0.18), transparent),
    radial-gradient(900px 500px at 100% 0%, rgba(13, 32, 67, 0.08), transparent), var(--tassel-bg);
  color: var(--tassel-ink);
  line-height: 1.55;
}

.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 40px;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--tassel-surface);
  border-radius: var(--tassel-radius);
  box-shadow: var(--tassel-shadow);
  border: 1px solid var(--tassel-border);
  padding: 36px 32px 32px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.brand img {
  width: min(280px, 100%);
  height: auto;
  display: block;
}

.accent-rule {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tassel-gold), rgba(187, 154, 99, 0.35));
}

h1 {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--tassel-ink);
}

.lead {
  margin: 0 0 22px;
  color: var(--tassel-ink-muted);
  font-size: 1rem;
}

.list {
  margin: 0 0 24px;
  padding-left: 1.15rem;
  color: var(--tassel-ink-muted);
  font-size: 0.95rem;
}

.list li {
  margin-bottom: 8px;
}

.list li:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tassel-ink-muted);
  margin-bottom: 6px;
}

.field {
  margin-bottom: 16px;
}

input[type='text'] {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--tassel-border);
  font-size: 1rem;
  font-family: inherit;
  color: var(--tassel-ink);
  background: #fafbfe;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input[type='text']::placeholder {
  color: rgba(13, 32, 67, 0.38);
}

input[type='text']:hover {
  border-color: rgba(13, 32, 67, 0.2);
}

input[type='text']:focus {
  outline: none;
  border-color: var(--tassel-gold);
  box-shadow: 0 0 0 3px rgba(187, 154, 99, 0.35);
}

.hint {
  font-size: 0.82rem;
  color: var(--tassel-ink-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

button.primary,
a.primary {
  appearance: none;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  width: 100%;
  padding: 14px 18px;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 650;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, #12305f 0%, var(--tassel-ink) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 22px rgba(13, 32, 67, 0.22);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

button.primary:hover,
a.primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 12px 26px rgba(13, 32, 67, 0.28);
}

button.primary:active,
a.primary:active {
  transform: translateY(1px);
}

button.primary:focus-visible,
a.primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(187, 154, 99, 0.55), 0 10px 22px rgba(13, 32, 67, 0.22);
}

.footnote {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--tassel-border);
  font-size: 0.8rem;
  color: var(--tassel-ink-muted);
}

.footnote a {
  color: var(--tassel-ink);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Complete page */
.status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.status-icon.ok {
  background: rgba(31, 111, 84, 0.12);
  color: var(--tassel-success);
}

.status-icon.err {
  background: rgba(180, 35, 24, 0.1);
  color: var(--tassel-danger);
}

.dismiss-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(13, 32, 67, 0.04);
  border: 1px solid var(--tassel-border);
  font-size: 0.92rem;
  color: var(--tassel-ink-muted);
}

code.inline {
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(13, 32, 67, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  button.primary,
  a.primary {
    transition: none;
  }
}
