/* Full-page auth — same language as auth modal */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Sora:wght@600;700;800&display=swap');

.page-auth main,
body:has(.auth-shell) main {
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(1, 119, 255, 0.1), transparent 55%),
        radial-gradient(700px 360px at 95% 0%, rgba(16, 185, 129, 0.08), transparent 50%),
        #f3f6fb;
}

.auth-shell {
    --auth-font: 'Manrope', system-ui, sans-serif;
    --auth-display: 'Sora', 'Manrope', system-ui, sans-serif;
    padding: 36px 16px 56px;
    font-family: var(--auth-font);
}

.auth-shell-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.15fr);
    width: min(880px, 100%);
    margin: 0 auto;
    min-height: 560px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(16, 24, 40, 0.12);
}

.auth-shell-aside {
    position: relative;
    color: #fff;
    background: linear-gradient(160deg, #0168E0 0%, #0177FF 42%, #0B4FBF 100%);
    overflow: hidden;
}

.auth-shell-aside-bg { position: absolute; inset: 0; pointer-events: none; }

.auth-shell-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.auth-shell-orb-1 {
    width: 180px; height: 180px; top: -40px; right: -30px;
    background: rgba(255, 255, 255, 0.18);
}

.auth-shell-orb-2 {
    width: 140px; height: 140px; bottom: 40px; left: -40px;
    background: rgba(0, 200, 83, 0.22);
}

.auth-shell-aside-grid {
    position: absolute; inset: 0; opacity: 0.12;
    background-image:
        linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at 30% 20%, #000 20%, transparent 70%);
}

.auth-shell-aside-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: 520px;
    padding: 28px 24px 32px;
}

.auth-shell-brand {
    align-self: flex-start;
    margin-bottom: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
    font-family: var(--auth-display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-shell-aside-title {
    margin: 0 0 18px;
    font-family: var(--auth-display);
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-shell-aside-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.auth-shell-aside-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
}

.auth-shell-aside-points i {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
}

.auth-shell-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 28px 28px 24px;
}

.auth-shell-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #F2F4F7;
}

.auth-shell-tab {
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    text-decoration: none;
    color: #475467;
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-shell-tab.is-active {
    background: #fff;
    color: #1D2635;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.auth-shell-head { margin-bottom: 16px; }
.auth-shell-head h1 {
    margin: 0 0 6px;
    font-family: var(--auth-display);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}
.auth-shell-head p {
    margin: 0;
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-shell-alert {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.4;
}
.auth-shell-alert.is-error {
    background: #FFF1F0;
    color: #D92D20;
    border: 1px solid rgba(217, 45, 32, 0.15);
}
.auth-shell-alert.is-success {
    background: #ECFDF3;
    color: #027A48;
    border: 1px solid rgba(2, 122, 72, 0.15);
}

.auth-shell-form { display: grid; gap: 14px; }
.auth-shell-field { display: grid; gap: 6px; }
.auth-shell-field > label,
.auth-shell-field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1D2635;
}

.auth-shell-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.auth-shell-label-row a {
    color: #0177FF;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}
.auth-shell-label-row a:hover { text-decoration: underline; }

.auth-shell-input {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-shell-input > i:first-child {
    position: absolute;
    left: 14px;
    color: #98A2B3;
    font-size: 0.85rem;
    pointer-events: none;
}
.auth-shell-input input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 40px;
    border: 1.5px solid #EAECF0;
    border-radius: 12px;
    background: #FCFCFD;
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.auth-shell-input input:hover { border-color: #D0D5DD; }
.auth-shell-input input:focus {
    outline: none;
    border-color: #0177FF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(1, 119, 255, 0.12);
}

.auth-shell-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-shell-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.auth-shell-role { cursor: pointer; }
.auth-shell-role input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.auth-shell-role > span {
    display: grid;
    gap: 2px;
    min-height: 86px;
    padding: 12px;
    border: 1.5px solid #EAECF0;
    border-radius: 12px;
    background: #FCFCFD;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.auth-shell-role i { color: #0177FF; margin-bottom: 4px; }
.auth-shell-role strong { font-size: 0.86rem; line-height: 1.25; }
.auth-shell-role small { color: #98A2B3; font-size: 0.75rem; }
.auth-shell-role input:checked + span {
    border-color: #0177FF;
    background: #E8F2FF;
    box-shadow: 0 0 0 3px rgba(1, 119, 255, 0.12);
}

.auth-shell-hint {
    margin: -4px 0 0;
    font-size: 0.78rem;
    color: #98A2B3;
}

.auth-shell-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 12px;
    font-weight: 700;
}

.auth-shell-switch {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: #667085;
}
.auth-shell-switch a {
    color: #0177FF;
    font-weight: 600;
    text-decoration: none;
}
.auth-shell-switch a:hover { text-decoration: underline; }

.auth-shell-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    color: #98A2B3;
    font-size: 0.78rem;
}
.auth-shell-divider::before,
.auth-shell-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #EAECF0;
}

.auth-shell-providers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.auth-shell-provider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    border-radius: 11px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}
.auth-shell-provider-vk { background: #0077FF; color: #fff; }
.auth-shell-provider-google {
    background: #fff;
    color: #1D2635;
    border: 1.5px solid #EAECF0;
}
.auth-shell-telegram {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.auth-shell-note {
    margin: 14px 0 0;
    text-align: center;
    color: #98A2B3;
    font-size: 0.78rem;
}

/* Keep admin/other auth-alert usable */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.auth-alert-error { background: #FFF1F0; color: #D92D20; }
.auth-alert-success { background: #ECFDF3; color: #027A48; }

@media (max-width: 760px) {
    .auth-shell { padding: 0 0 40px; }
    .auth-shell-card {
        grid-template-columns: 1fr;
        border-radius: 0;
        min-height: 0;
        box-shadow: none;
    }
    .auth-shell-aside-content {
        min-height: 140px;
        padding: 18px;
        justify-content: center;
    }
    .auth-shell-aside-title { margin: 8px 0 0; font-size: 1.15rem; }
    .auth-shell-aside-points { display: none; }
    .auth-shell-main { padding: 20px 16px 28px; }
    .auth-shell-row,
    .auth-shell-roles,
    .auth-shell-providers { grid-template-columns: 1fr; }
}
