.auth-body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: #e7e5e3; font-family: 'Trebuchet MS', Arial, sans-serif; font-size: 16px; }
.auth-page, .auth-page * { box-sizing: border-box; }
.auth-page { flex: 1; display: grid; place-items: center; padding: 32px 20px; }
.auth-shell { --auth-brand-width: 170px; --auth-logo-crop: 40px; --auth-logo-thickness: calc(var(--auth-brand-width) * 2 / 3 + var(--auth-logo-crop)); --auth-logo-length: calc(var(--auth-logo-thickness) * 2625 / 782); width: min(100%, 850px); display: grid; grid-template-columns: var(--auth-brand-width) minmax(0, 1fr); background: white; border: 1px solid var(--dashboard-line); border-radius: 18px; box-shadow: 0 12px 40px #2029390a; overflow: hidden; }
.auth-brand { position: relative; overflow: hidden; background: #f5f4f2; border-right: 1px solid var(--dashboard-line); min-height: max(380px, var(--auth-logo-length)); }
/* Pasukto logotipo matoma dalis užima 2/3 bloko pločio; kairė dalis paslėpta už krašto. */
.auth-brand img { position: absolute; top: 0; left: calc(0px - var(--auth-logo-crop)); display: block; width: auto; max-width: none; height: var(--auth-logo-thickness); transform-origin: top left; transform: rotate(90deg) translateY(-100%); }
.auth-content { padding: 42px 40px 30px; min-width: 0; }
.auth-content h1 { margin: 14px 0 10px; font-size: clamp(1.7rem, 3vw, 2rem); line-height: 1.2; color: var(--dashboard-text); }
.auth-intro { margin: 0 0 20px; line-height: 1.55; color: var(--dashboard-muted); overflow-wrap: anywhere; }
.auth-steps { display: flex; flex-wrap: wrap; gap: 14px 20px; padding: 0; margin: 24px 0; list-style: none; font-size: .84rem; color: var(--dashboard-muted); }
.auth-steps li { display: flex; align-items: center; gap: 8px; }
.auth-steps span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--dashboard-line); border-radius: 50%; }
.auth-steps [aria-current='step'] { color: var(--dashboard-red); font-weight: 700; }
.auth-steps [aria-current='step'] span { background: var(--dashboard-red); color: white; border-color: var(--dashboard-red); }
.auth-steps .complete span { color: #246351; background: #edf6f2; }
.auth-form { display: grid; gap: 10px; margin: 22px 0 0; }
.auth-form label { display: block; font-size: .9rem; font-weight: 700; margin: 7px 0 0; }
.auth-form p { margin: 0; }
.auth-form input:not([type='hidden']) { width: 100%; min-width: 0; height: 46px; padding: 10px 12px; border: 1px solid #cbd3de; border-radius: 8px; background: white; color: var(--dashboard-text); font: inherit; }
.auth-form p input { margin-top: 10px; }
.auth-page :is(input, button, a):focus-visible { outline: 3px solid #92000a55; outline-offset: 3px; }
.auth-page .dashboard-primary-button { width: 100%; min-height: 46px; margin-top: 12px; font-family: inherit; font-size: 1rem; }
.auth-page .dashboard-secondary-button { font-family: inherit; line-height: 1.3; }
.auth-text-link { display: inline-block; justify-self: center; color: var(--dashboard-red); background: none; border: 0; padding: 8px 0; font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-text-link:hover { color: var(--dashboard-red-dark); }
.auth-caption, .auth-footer { font-size: .82rem; line-height: 1.5; color: var(--dashboard-muted); }
.auth-footer { border-top: 1px solid var(--dashboard-line); margin-top: 28px; padding-top: 18px; }
.auth-credits { width: calc(100% - 32px); max-width: 490px; margin: 0 auto; padding-bottom: 24px; text-align: center; color: #646d77; font-size: .85rem; line-height: 1.5; }
.auth-credits .kurejo-juosta { border-top: 1px solid #cbd0d6; padding: 20px 0 4px; }
.auth-credits p { margin: 0; }
.auth-credits strong { display: inline-block; color: #92000a; }
.auth-credits .kurejo-teises { margin-top: 5px; font-size: .75rem; }
.auth-notice, .auth-form .errorlist { padding: 12px 14px; border-radius: 8px; background: #f4f6f8; font-size: .88rem; line-height: 1.5; margin: 14px 0; }
.auth-notice.error, .auth-form .errorlist { background: #fff0f0; color: #92000a; }
.auth-form .errorlist { list-style: none; margin: 0; }
.auth-notice.success { background: #edf6f2; color: #246351; }
.auth-form .auth-code { font-size: 1.5rem; letter-spacing: .28em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-alternatives { border-top: 1px solid var(--dashboard-line); margin-top: 24px; padding-top: 12px; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
@media (max-width: 600px) {
  .auth-page { padding: 16px 10px; }
  .auth-shell { --auth-brand-width: 54px; --auth-logo-crop: 12px; border-radius: 12px; }
  .auth-content { padding: 28px 18px 22px; }
  .auth-content .dashboard-eyebrow { font-size: .67rem; }
  .auth-actions { flex-direction: column; }
}
