:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17233a;
  background: #f3f6fb;
  font-synthesis: none;
  --blue: #155fd1;
  --ink: #17233a;
  --muted: #5c6c83;
  --line: #dce3ef;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 24%, #e7effd 0, #f3f6fb 60%); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #155fd1; outline-offset: 4px; }
.entry-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(20px, 5vw, 72px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; background: linear-gradient(145deg, #155fd1, #20a0e3); color: #fff; border-radius: 14px 14px 14px 5px; font-size: 1.25rem; font-weight: 850; }
.brand-copy strong, .brand-copy span { display: block; }
.brand-copy strong { font-size: 1rem; }
.brand-copy span { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.preview-badge { color: #526078; padding: 7px 11px; border: 1px solid #d7dfec; border-radius: 7px; font-size: .875rem; line-height: 1.4; }
.entry-main { flex: 1; width: min(100%, 536px); margin: 0 auto; padding: 24px 24px 32px; }
.entry-card { padding: 34px 34px 26px; background: #fff; border: 1px solid #dce5f3; border-radius: 24px; box-shadow: 0 18px 60px -20px rgba(32, 66, 124, .22); }
.entry-heading { margin-bottom: 26px; }
.eyebrow { color: var(--blue); margin: 0 0 9px; text-transform: uppercase; font-weight: 750; font-size: .875rem; letter-spacing: .08em; line-height: 1.5; }
h1 { margin: 0; font-size: clamp(1.65rem, 5vw, 1.9rem); letter-spacing: -.04em; line-height: 1.25; }
.entry-subtitle { color: var(--muted); margin: 10px 0 0; line-height: 1.5; font-size: 1rem; }
.role-tabs { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4px; padding: 4px; background: #f0f4fa; border: 1px solid #e5ebf3; border-radius: 13px; }
.role-tab { min-width: 0; min-height: 44px; padding: 10px 6px; color: #576780; border: 1px solid transparent; border-radius: 9px; background: transparent; font-size: .9375rem; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.role-tab[aria-selected="true"] { color: #0b449c; background: white; border-color: #dce5f3; box-shadow: 0 2px 5px rgba(34, 60, 99, .06); }
.form-title { margin: 26px 0 20px; font-size: 1.125rem; font-weight: 650; line-height: 1.4; }
.field { margin-bottom: 20px; }
.field label { display: block; margin: 0 0 8px; font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.field input { width: 100%; min-width: 0; min-height: 52px; border: 1px solid #cbd6e5; border-radius: 11px; padding: 13px 14px; font-size: 1rem; line-height: 1.5; background: #fcfdff; color: var(--ink); }
.field input::placeholder { color: #78869b; opacity: 1; }
.field input:focus { border-color: var(--blue); background: white; }
.field-hint { color: var(--muted); font-size: .875rem; line-height: 1.55; margin: 8px 0 0; }
.password-field { position: relative; }
.password-field input { padding-right: 54px; }
.password-toggle { position: absolute; top: 4px; right: 4px; bottom: 4px; width: 44px; display: grid; place-items: center; color: #5c6c83; background: transparent; border: 0; border-radius: 8px; }
.password-toggle:hover { background: #edf3fc; color: var(--blue); }
.submit-button { width: 100%; min-height: 52px; padding: 13px 18px; color: white; background: var(--blue); border: 0; border-radius: 11px; font-size: 1rem; font-weight: 650; line-height: 1.5; box-shadow: 0 6px 14px rgba(21, 95, 209, .15); }
.submit-button:hover { background: #104fb4; }
.submit-button:active { background: #0b449c; }
.first-entry { margin-top: 23px; padding-top: 20px; border-top: 1px solid #e8edf5; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 6px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.text-button { padding: 10px 3px; color: #1555b5; background: transparent; border: 0; border-radius: 4px; font-size: .875rem; font-weight: 650; line-height: 1.5; }
.text-button:hover { text-decoration: underline; }
.form-message { margin: 0 0 18px; padding: 12px 14px; color: #214d83; background: #ecf3ff; border: 1px solid #d5e4fb; border-radius: 10px; line-height: 1.5; font-size: .9375rem; }
.form-message.is-error { color: #a32020; background: #fff0f0; border-color: #f4d8d8; }
.preview-note { margin: 22px auto 0; max-width: 405px; text-align: center; }
.preview-note p, .noscript-note { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.catalog-link { display: inline-flex; gap: 10px; align-items: center; justify-content: center; padding: 11px; min-height: 44px; color: #1555b5; font-size: .9375rem; font-weight: 600; text-underline-offset: 4px; }
.entry-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding: 18px clamp(20px, 5vw, 72px) max(22px, env(safe-area-inset-bottom)); color: var(--muted); font-size: .875rem; line-height: 1.6; }
.admin-entry-note { color: var(--muted); line-height: 1.65; margin: 0 0 24px; overflow-wrap: anywhere; }
.admin-entry-note strong { color: var(--ink); }
.admin-entry-link { display: block; text-align: center; text-decoration: none; }
@media (max-width: 540px) {
  .entry-header { padding: 18px 20px; gap: 10px; }
  .preview-badge { padding: 5px 7px; }
  .entry-main { padding: 15px 16px 26px; }
  .entry-card { padding: 26px 22px 20px; border-radius: 20px; }
  .entry-heading { margin-bottom: 22px; }
  .form-title { margin-top: 22px; }
  .entry-footer { justify-content: center; text-align: center; padding: 8px 20px max(22px, env(safe-area-inset-bottom)); }
}
@media (max-width: 370px) {
  .entry-header { padding-inline: 16px; flex-wrap: wrap; }
  .entry-card { padding-inline: 16px; }
  .role-tab { font-size: .875rem; }
}
