.auth-body {
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(0, 1fr);
    min-block-size: 100dvh;
}
.auth-body .auth-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: clamp(28px, 4vw, 62px);
    background: var(--public-banner);
    color: var(--public-cream);
}
.auth-body .auth-side-top { gap: 16px; }
.auth-body .auth-side-top .brand-period, .auth-body .auth-side-top .language-link { color: var(--public-gold); }
.auth-body .auth-side-top .language-link, .auth-body .auth-mobile-brand .language-link {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    padding-inline: 8px;
    font-weight: 750;
}
.auth-body .auth-side a:focus-visible { outline-color: var(--public-gold); }
.auth-body .auth-illustration {
    width: 100%;
    max-inline-size: 495px;
    margin: auto;
    padding: 0;
}
.auth-body .auth-display {
    margin-block-end: clamp(22px, 4vw, 38px);
    color: var(--public-cream);
    font: 400 clamp(3.4rem, 5.3vw, 6rem)/.91 var(--public-display);
}
.auth-display em { display: block; color: var(--public-gold); }
.auth-body .auth-preview-card {
    display: grid;
    padding: 8px;
    border: 1px solid #f7ccbd66;
    border-radius: 22px;
    background: #fff6ee;
    color: var(--ink);
    box-shadow: 0 16px 32px #1a0e1c45;
    transform: rotate(-3deg);
    transition: transform .22s var(--public-ease);
}
.auth-body .auth-preview-card img {
    inline-size: 100%;
    block-size: auto;
    max-block-size: 285px;
    aspect-ratio: 1.73;
    border-radius: 15px;
    object-fit: cover;
    display: block;
}
.auth-body .auth-preview-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 10px 6px;
    font-weight: 750;
}
.auth-body .auth-preview-card .icon { inline-size: 19px; block-size: 19px; }
.auth-body .auth-caption { font-size: .88rem; color: #efdee4; margin: 0; }
.auth-body .auth-content {
    min-inline-size: 0;
    padding: clamp(25px, 5vw, 72px) clamp(24px, 5vw, 65px) 22px;
    gap: 24px;
}
.auth-body .auth-form-wrap { max-inline-size: 428px; }
.auth-form-wrap .input { font-size: 16px; min-height: 50px; }
.auth-form-wrap :is(.form-field label, .field-help, .form-inline, .checkbox-row), .auth-switch, .auth-footer { font-size: .875rem; }
.auth-body .auth-form-wrap h1 {
    font: 400 clamp(3.35rem, 5.15vw, 5rem)/.95 var(--public-display);
    letter-spacing: -.016em;
    margin-block: 6px 14px;
    text-wrap: balance;
}
.auth-body .auth-form-wrap > p { font-size: 1rem; line-height: 1.6; margin-block-end: 26px; }
.auth-body .auth-form-wrap > .auth-switch { margin-block: 18px 0; }
.auth-body .auth-form-wrap .notice { margin-block-end: 18px; }
.auth-form-wrap .button { font-size: 1rem; min-height: 51px; }
.auth-form-wrap .form-inline { justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; }
.auth-form-wrap .form-inline :is(a, .checkbox-row) { display: inline-flex; align-items: center; min-block-size: 44px; }
.auth-form-wrap input[type=checkbox] { accent-color: var(--accent-strong); }
.auth-body :is(.auth-form-wrap a, .auth-footer a) { color: var(--accent-strong); }
.auth-body .auth-message-icon { color: var(--accent-strong); background: var(--accent-tint); }
.auth-password { position: relative; }
.auth-password:has([data-password-toggle]:not([hidden])) .input { padding-inline-end: 55px; }
.auth-body .auth-password .icon-button {
    position: absolute;
    inset-block-start: 3px;
    inset-inline-end: 5px;
    inline-size: 44px;
    block-size: 44px;
    color: var(--accent-strong);
    padding: 0;
    border: 0;
    background: transparent;
}
.auth-body .auth-password .icon-button[hidden] { display: none; }
.auth-body .auth-password .icon-button[aria-pressed=true] { background: var(--accent-tint); }
.auth-body .auth-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.auth-body .auth-footer a { display: inline-flex; align-items: center; min-block-size: 44px; }
.demo-credentials { margin-block-start: 21px; padding: 10px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: .875rem; }
.demo-credentials summary { cursor: pointer; padding-block: 8px; font-weight: 750; }
.demo-credentials > div { padding-block-start: 8px; display: grid; gap: 5px; }
.demo-credentials p { font-size: .81rem; overflow-wrap: anywhere; }
.error-page { min-block-size: 100dvh; padding: 40px max(24px,6vw); }
.error-page header { max-inline-size: 1200px; margin-inline: auto; }
.error-page main { max-inline-size: 620px; margin: 9vh auto; text-align: center; }
.error-number { display: block; font: 400 clamp(4.5rem,10vw,9rem)/1 var(--public-display); color: var(--accent-strong); margin-block-end: 18px; }
.error-page h1 { font-size: clamp(1.85rem,4vw,2.8rem); line-height: 1.2; margin-block-end: 14px; }
.error-page p { font-size: 1.05rem; line-height: 1.65; margin-block-end: 25px; }
.error-page .button-row { justify-content: center; }
html[dir=rtl] .auth-body :is(.auth-display, .auth-form-wrap h1) { font-size: clamp(2.3rem,4vw,4rem); font-weight: 800; letter-spacing: 0; line-height: 1.22; }
html[dir=rtl] .auth-body .auth-display em { font-style: normal; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .auth-body .auth-preview-card:hover { transform: translateY(-3px) rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce) {
    .auth-body .auth-preview-card { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
    .auth-body .auth-illustration { animation: auth-arrive .5s var(--public-ease) both; }
    @keyframes auth-arrive { from { transform: translateY(12px); } }
}
@media (max-width: 760px) {
    .auth-body { display: block; }
    .auth-body .auth-side { display: none; }
    .auth-body .auth-content { min-block-size: 100dvh; gap: 34px; }
    .auth-body .auth-mobile-brand { margin: 0; display: flex; align-items: center; justify-content: space-between; }
    .auth-body .auth-form-wrap { margin-block: auto; }
}
@media (max-width: 440px) {
    .error-page .button-row { flex-direction: column; }
    .error-page .button { inline-size: 100%; }
}
