:root { color: #1d2d45; background: #edf3f8; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; }
a { color: #168dcc; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #f0ae2b; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 3; top: 0; left: 1rem; padding: .75rem; transform: translateY(-120%); color: #fff; background: #168dcc; }.skip-link:focus { transform: translateY(0); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, .85fr) minmax(420px, 1.15fr); }
.auth-aside { padding: clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column; color: #fff; background: linear-gradient(145deg, #31c7f5, #197ccc); }
.auth-brand { display: inline-flex; gap: .65rem; align-items: center; color: #fff; font-size: 1.1rem; font-weight: 800; text-decoration: none; }.auth-brand span { width: 32px; height: 32px; display: grid; place-items: center; color: #2182c3; background: #fff; border-radius: 9px 9px 9px 2px; font-size: .67rem; }
.auth-aside-copy { max-width: 420px; margin: auto 0; }.auth-aside-copy p { margin: 0 0 1rem; opacity: .85; font-size: .9rem; }.auth-aside-copy h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; }.auth-aside-note { max-width: 340px; margin: 2rem 0 0; opacity: .8; font-size: .78rem; line-height: 1.5; }
.auth-content { padding: 1.5rem; display: grid; place-items: center; }.auth-card { width: min(100%, 420px); padding: clamp(1.5rem, 4vw, 2.7rem); background: #fff; border: 1px solid #e3ebf3; border-radius: 18px; box-shadow: 0 16px 44px rgb(59 88 117 / 11%); }
.eyebrow { margin: 0 0 .4rem; color: #2189cb; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.auth-card h1 { margin: 0 0 .65rem; font-size: 1.85rem; letter-spacing: -.04em; }.auth-lede { margin: 0 0 1.6rem; color: #71809a; line-height: 1.55; }
.auth-field { margin-bottom: 1rem; }.auth-field label { display: block; margin-bottom: .4rem; color: #3a4d67; font-size: .82rem; font-weight: 720; }.auth-field input { width: 100%; min-height: 45px; padding: .7rem .75rem; color: #1d2d45; background: #fff; border: 1px solid #bacbdb; border-radius: 9px; }.auth-field input:focus { border-color: #2fc6f6; box-shadow: 0 0 0 3px rgb(47 198 246 / 16%); outline: 0; }.label-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }.label-row a { font-size: .76rem; }
.auth-field select { width: 100%; min-height: 45px; padding: .7rem .75rem; color: #1d2d45; background: #fff; border: 1px solid #bacbdb; border-radius: 9px; }.auth-field select:focus { border-color: #2fc6f6; box-shadow: 0 0 0 3px rgb(47 198 246 / 16%); outline: 0; }
.remember { display: flex; gap: .5rem; align-items: center; margin: .3rem 0 1.25rem; color: #5c6f87; font-size: .8rem; }.remember input { width: 16px; height: 16px; accent-color: #269cd7; }.auth-submit { width: 100%; min-height: 46px; color: #fff; background: linear-gradient(135deg, #36c9f5, #238fda); border: 0; border-radius: 9px; box-shadow: 0 7px 14px rgb(47 171 232 / 22%); cursor: pointer; font-weight: 760; }.auth-submit:hover { background: #168dcc; }.auth-help { margin: 1.25rem 0 0; color: #71809a; text-align: center; font-size: .8rem; }.form-status { padding: .75rem .85rem; color: #176c9f; background: #e7f6fd; border: 1px solid #c5eafa; border-radius: 8px; font-size: .8rem; }.field-error { margin: .3rem 0 0; color: #bb3d3d; font-size: .75rem; }.field-help { margin: .3rem 0 0; color: #71809a; font-size: .73rem; }.secondary-form { margin-top: .8rem; text-align: center; }.auth-link-button { color: #277eb8; background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
.plain-summary { display: grid; gap: .75rem; padding: 0; margin: 1.25rem 0; }.plain-summary > div { padding: .75rem; background: #f5f9fc; border: 1px solid #e0ebf3; border-radius: 8px; }.plain-summary dt { color: #71809a; font-size: .72rem; }.plain-summary dd { margin: .25rem 0 0; color: #304d69; font-size: .86rem; font-weight: 700; }
@media (max-width: 800px) { .auth-shell { grid-template-columns: 1fr; }.auth-aside { min-height: 240px; padding: 1.5rem; }.auth-aside-copy { margin: auto 0 0; }.auth-aside-copy h1 { max-width: 600px; font-size: 1.8rem; }.auth-aside-note { display: none; }.auth-content { padding: 1rem; }.auth-card { margin-top: -1.4rem; }.label-row { align-items: flex-start; flex-direction: column; gap: .3rem; } }
.auth-submit-secondary { color: #176c9f; background: #fff; border: 1px solid #9fd6f2; box-shadow: none; }.auth-submit-secondary:hover { color: #fff; }
.auth-card h1 { overflow-wrap: anywhere; }.auth-field input, .auth-field select, .auth-field textarea { font: inherit; }.auth-field textarea { width: 100%; min-height: 110px; padding: .7rem .75rem; color: #1d2d45; background: #fff; border: 1px solid #bacbdb; border-radius: 9px; resize: vertical; }.auth-field textarea:focus { border-color: #2fc6f6; box-shadow: 0 0 0 3px rgb(47 198 246 / 16%); outline: 0; }
@media (max-width: 680px) { .auth-field input, .auth-field select, .auth-field textarea { font-size: 16px; } }
.kb-template { margin-top: .6rem; padding: .7rem .8rem; background: #f6fafd; border: 1px solid #d9e7f2; border-radius: 9px; }.kb-template summary { color: #176c9f; font-size: .86rem; font-weight: 700; cursor: pointer; }.kb-template ul { margin: .6rem 0; padding-left: 1.1rem; font-size: .82rem; line-height: 1.5; overflow-wrap: anywhere; }.kb-template small { color: #71809a; }
a.auth-submit { display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; text-decoration: none; }

/* Ошибки формы и закреплённая кнопка сохранения — как в preview.css. */
.has-error input:not([type=checkbox]):not([type=radio]), .has-error select, .has-error textarea, [aria-invalid="true"] { border-color: #d65b5b !important; box-shadow: 0 0 0 3px rgb(214 91 91 / 14%); }
.error-summary { margin: 0 0 1.1rem; padding: .85rem 1rem; color: #8f2f2f; background: #fdf1f1; border: 1px solid #f0c4c4; border-left: 4px solid #d65b5b; border-radius: 10px; font-size: .86rem; }
.error-summary-title { margin: 0 0 .35rem; font-weight: 750; }
.error-summary ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .2rem; }
.error-summary a { color: #8f2f2f; text-decoration: underline; }
.wizard-actions { position: sticky; bottom: 0; z-index: 15; padding: .85rem 0; background: rgb(255 255 255 / 95%); }
@media (max-width: 680px) { .wizard-actions { bottom: calc(66px + env(safe-area-inset-bottom)); } }
