:root {
  color-scheme: light;
  --navy: #14283b;
  --accent: #087c82;
  --accent-light: #59d1c5;
  --muted: #637587;
  --surface: #f0f4f7;
  --border: #dce4eb;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--navy);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--surface); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .7; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-header {
  min-height: 72px; padding: 12px clamp(20px, 5vw, 72px);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.master-brand { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 650; }
.master-brand strong { font-size: 22px; letter-spacing: -.075em; }
.master-brand strong span { color: var(--accent); }
.brand-divider { width: 1px; height: 17px; background: var(--border); }
.language-tabs { flex: none; display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 9px; }
.language-tabs button {
  min-width: 43px; min-height: 38px; padding: 5px; background: transparent;
  border: 1px solid transparent; border-radius: 6px; color: var(--muted);
  font-size: 12px; font-weight: 650;
}
.language-tabs button[aria-pressed="true"] { color: var(--accent); background: white; border-color: var(--border); }
.site-main { flex: 1; display: grid; place-items: center; padding: 32px 20px; }
.auth-card {
  width: min(100%, 436px); background: white; border: 1px solid var(--border); border-radius: 18px;
  padding: 38px; box-shadow: 0 12px 32px rgba(20, 40, 59, .055), 0 2px 6px rgba(20, 40, 59, .035);
}
.client-logo { display: block; width: min(235px, 88%); height: auto; margin-bottom: 24px; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 650; letter-spacing: -.035em; overflow-wrap: anywhere; }
.description { margin: 9px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.52; }
.field + .field { margin-top: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.field input {
  display: block; width: 100%; min-width: 0; height: 48px; padding: 0 13px;
  border: 1px solid #cbd7e0; border-radius: 8px; background: white; color: var(--navy); font-size: 15px;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input[aria-invalid="true"] { border-color: #a13636; }
.password-field { position: relative; }
.password-field input { padding-inline-end: 50px; }
.visibility {
  position: absolute; inset-inline-end: 2px; top: 2px; height: 44px; width: 44px;
  display: grid; place-items: center; color: var(--muted); border: 0; border-radius: 7px; background: none;
}
.visibility:hover, .visibility[aria-pressed="true"] { color: var(--accent); }
.secondary-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; }
.secondary-actions:has(> :not([hidden])) { margin-top: 4px; }
.text-button {
  color: var(--accent); border: 0; background: none; padding: 5px 0; min-height: 40px;
  font-size: 13px; font-weight: 650; text-align: start;
}
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.primary {
  width: 100%; min-height: 48px; margin-top: 12px; border: 1px solid transparent; border-radius: 8px;
  background: var(--navy); color: white; font-size: 14px; font-weight: 650;
}
.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--navy) 88%, var(--accent)); }
.back { margin-top: 6px; }
.form-status {
  margin: 12px 0 0; padding: 9px 11px; border-radius: 7px;
  background: #edf6f5; color: #275854; font-size: 13px; line-height: 1.45;
}
.form-status[data-error="true"] { background: #fdf0ef; color: #882e2e; }
.security {
  display: flex; justify-content: center; align-items: center; gap: 7px;
  border-top: 1px solid var(--border); margin-top: 22px; padding-top: 16px;
  color: var(--muted); font-size: 12px; text-align: center;
}
.security svg { flex: none; color: var(--accent); }
.site-footer {
  min-height: 54px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 5px 18px; padding: 12px 20px; font-size: 11px; text-align: center; color: var(--muted);
}
@media (max-width: 480px) {
  .site-header { min-height: 64px; padding: 9px 16px; }
  .master-brand { gap: 8px; font-size: 12px; }
  .site-main { padding: 22px 16px; }
  .auth-card { padding: 24px; }
  h1 { font-size: 26px; }
  .field input { font-size: 16px; }
  .text-button { min-height: 44px; }
}
@media (max-height: 590px) {
  .site-main { align-items: start; }
}
