.pos-auth {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(14px, 4vw, 52px);
    display: grid;
    place-items: center;
    font: 15px/1.5 Inter, "Segoe UI", system-ui, sans-serif;
}

.pos-auth *, .pos-auth *::before, .pos-auth *::after { box-sizing: border-box; }
.pos-auth input, .pos-auth select, .pos-auth button { font: inherit; }

.auth-shell {
    width: min(100%, 1050px);
    min-height: 594px;
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    overflow: hidden;
    border: 1px solid var(--pos-line);
    border-radius: 25px;
    background: var(--pos-panel);
    box-shadow: 0 24px 68px rgb(12 27 26 / .13), var(--pos-shadow);
}

.auth-cover {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(24px, 4.4vw, 58px);
    color: var(--pos-side-text);
    background: var(--pos-side);
}

.auth-brand { display: flex; align-items: center; gap: 13px; font-size: 17px; font-weight: 750; overflow-wrap: anywhere; }
.auth-brand img, .auth-logo {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    object-fit: contain;
}
.auth-brand img { background: #fff; padding: 5px; }
.auth-logo { background: var(--pos-accent-soft); color: var(--text); font-size: 20px; }
.auth-welcome { margin-top: clamp(45px, 7vw, 90px); }
.auth-welcome h1 {
    margin: 0;
    max-width: 10ch;
    font-size: clamp(38px, 5.1vw, 66px);
    line-height: 1.02;
    letter-spacing: -.055em;
}
.auth-welcome p { max-width: 33ch; margin: 18px 0 0; opacity: .91; }

.auth-art {
    position: absolute;
    z-index: -1;
    width: 280px;
    height: 245px;
    right: -12px;
    bottom: -45px;
    pointer-events: none;
    color: var(--pos-side-text);
}
.auth-art-ring {
    position: absolute;
    inset: 0;
    border-radius: 47%;
    border: 1px solid currentColor;
    box-shadow: 0 0 0 24px currentColor, 0 0 0 45px currentColor;
    opacity: .08;
    transform: rotate(-24deg);
}
.auth-art-icon, .auth-art-chip {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / .35);
    background: rgb(255 255 255 / .13);
}
.auth-art-icon { inset: 43px 54px 64px 66px; border-radius: 28px; font-size: 55px; transform: rotate(-13deg); }
.auth-art-chip { width: 54px; height: 54px; border-radius: 14px; font-size: 22px; }
.auth-art-chip:nth-of-type(3) { top: 21px; right: 43px; transform: rotate(12deg); }
.auth-art-chip:nth-of-type(4) { bottom: 42px; left: 30px; transform: rotate(8deg); }

.auth-panel { display: flex; flex-direction: column; min-width: 0; padding: 27px clamp(25px, 5vw, 64px) 23px; }
.auth-tools { display: flex; gap: 10px; align-items: center; justify-content: flex-end; font-size: 13px; color: var(--muted); }
.auth-tools label { white-space: nowrap; }
.auth-tools select {
    min-width: 0;
    padding: 6px 9px;
    border: 1px solid var(--pos-line);
    border-radius: var(--pos-radius);
    background: var(--pos-input);
    color: var(--text);
    color-scheme: light;
}
.auth-form { width: 100%; max-width: 355px; margin: auto; padding: 40px 0; }
.auth-form h2 { margin: 0; font-size: clamp(27px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.042em; }
.auth-form p { margin: 6px 0 25px; color: var(--muted); }
.auth-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.auth-input {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 49px;
    margin-bottom: 16px;
    padding-inline: 13px 4px;
    border: 1px solid var(--pos-line);
    border-radius: var(--pos-radius);
    color: var(--muted);
    background: var(--pos-input);
}
.auth-input input { flex: 1; width: 0; padding: 11px 0; background: transparent; color: var(--text); border: 0; outline: none; }
.auth-input:focus-within { border-color: var(--pos-accent); outline: 2px solid var(--pos-accent); outline-offset: 2px; }
.auth-input button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; }
.auth-input button:hover { background: var(--pos-accent-soft); color: var(--text); }
.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 49px;
    margin-top: 23px;
    padding: 10px 15px;
    color: var(--pos-on-accent);
    background: var(--pos-accent);
    border: 1px solid var(--pos-accent);
    border-radius: var(--pos-radius);
    font-weight: 750;
    cursor: pointer;
}
.auth-submit:hover { background: var(--pos-accent-hover); }
.pos-auth :is(.auth-submit, .auth-tools select, .auth-input button):focus-visible { outline: 2px solid var(--pos-accent); outline-offset: 3px; }
.auth-form .auth-help, .auth-footer { color: var(--muted); text-align: center; font-size: 12px; overflow-wrap: anywhere; }
.auth-form .auth-help { margin: 18px 0 0; }

[data-pos-theme="dark"] { color-scheme: dark; }
[data-pos-theme="dark"] .auth-tools select { color-scheme: dark; }
[data-pos-theme="dark"] .auth-logo { color: var(--pos-accent); }
[data-pos-theme="dark"] .auth-art-icon { color: var(--pos-accent); border-color: #24ebd46b; background: #0b3e49; }

[data-pos-theme="glass"] .auth-shell { border-color: #fff; backdrop-filter: blur(12px); }

[data-pos-theme="brutal"] :is(.auth-shell, .auth-input, .auth-tools select, .auth-submit, .auth-art-icon, .auth-art-chip) {
    border: 2px solid var(--pos-line);
    border-radius: 8px;
    box-shadow: 4px 4px var(--pos-line);
}
[data-pos-theme="brutal"] .auth-cover { border-right: 2px solid var(--pos-line); }
[data-pos-theme="brutal"] .auth-art-icon, [data-pos-theme="brutal"] .auth-art-chip { background: #ffe533; }
[data-pos-theme="brutal"] .auth-submit { background: #ffe533; }
[data-pos-theme="brutal"] .auth-submit:hover { background: #fff08a; }

[data-pos-theme="compact"] .auth-shell { max-width: 860px; min-height: 485px; border-radius: 10px; grid-template-columns: .9fr 1.1fr; }
[data-pos-theme="compact"] .auth-cover { color: #fff; background: linear-gradient(150deg, #184a86, #1358a6); padding: 36px; }
[data-pos-theme="compact"] .auth-welcome h1 { font-size: clamp(33px, 4.2vw, 49px); }
[data-pos-theme="compact"] :is(.auth-input, .auth-submit) { min-height: 42px; }

@media (max-width: 700px) {
    .auth-shell, [data-pos-theme="compact"] .auth-shell { max-width: 480px; min-height: 0; grid-template-columns: 1fr; }
    .auth-cover, [data-pos-theme="compact"] .auth-cover { padding: 20px 23px 26px; }
    .auth-welcome { margin-top: 20px; }
    .auth-welcome h1, [data-pos-theme="compact"] .auth-welcome h1 { font-size: 32px; }
    .auth-welcome p { margin-top: 10px; font-size: 13px; }
    .auth-art { opacity: .5; right: -41px; bottom: -94px; transform: scale(.72); }
    .auth-panel { padding: 17px 24px; }
    .auth-form { padding: 24px 0 31px; }
    [data-pos-theme="brutal"] .auth-cover { border-right: 0; border-bottom: 2px solid var(--pos-line); }
}

@media (max-width: 360px) {
    .auth-art { display: none; }
    .auth-panel { padding-inline: 17px; }
}
