:root {
    --auth-bg: #08101f;
    --auth-bg-deep: #060b16;
    --auth-panel: rgba(8, 16, 31, 0.76);
    --auth-card: rgba(255, 255, 255, 0.92);
    --auth-card-border: rgba(255, 255, 255, 0.12);
    --auth-text-main: #172033;
    --auth-text-sub: #66708a;
    --auth-text-soft: rgba(255, 255, 255, 0.72);
    --auth-primary: #5a6dff;
    --auth-secondary: #b247f9;
    --auth-cyan: #47d8ff;
    --auth-grad: linear-gradient(135deg, #b247f9 0%, #5a6dff 52%, #47d8ff 100%);
    --auth-border-soft: rgba(255, 255, 255, 0.1);
    --auth-input-border: rgba(23, 32, 51, 0.12);
    --auth-success-bg: #eefcf4;
    --auth-success-text: #157347;
    --auth-error-bg: #fff0f0;
    --auth-error-text: #a52d2d;
    --auth-shadow: 0 34px 90px rgba(3, 8, 24, 0.38);
    --auth-radius-xl: 30px;
    --auth-radius-lg: 20px;
    --auth-radius-md: 14px;
    --auth-font-head: 'Manrope', sans-serif;
    --auth-font-body: 'Public Sans', sans-serif;
}

body.auth-page {
    margin: 0;
    font-family: var(--auth-font-body);
    background:
        radial-gradient(circle at 12% 20%, rgba(71, 216, 255, 0.18), transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(178, 71, 249, 0.22), transparent 26%),
        linear-gradient(180deg, #091121 0%, #08101f 46%, #060b16 100%);
    color: #fff;
}

body.auth-page .site-header {
    background: rgba(8, 16, 31, 0.72);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 1px 28px rgba(0, 0, 0, 0.24);
}

body.auth-page .site-header.scrolled {
    background: rgba(8, 16, 31, 0.9);
}

.auth-shell {
    position: relative;
    min-height: calc(100vh - 190px);
    padding: 128px 24px 88px;
    overflow: hidden;
}

.auth-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(24px);
    opacity: 0.58;
    pointer-events: none;
}

.auth-orb-left {
    top: 140px;
    left: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(178, 71, 249, 0.55) 0%, rgba(178, 71, 249, 0) 70%);
}

.auth-orb-right {
    right: -60px;
    bottom: 100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(71, 216, 255, 0.42) 0%, rgba(71, 216, 255, 0) 70%);
}

.auth-frame {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
    gap: 34px;
    align-items: stretch;
}

.auth-showcase {
    position: relative;
    padding: 42px;
    border-radius: var(--auth-radius-xl);
    background:
        linear-gradient(160deg, rgba(12, 20, 38, 0.82) 0%, rgba(8, 16, 31, 0.72) 100%);
    border: 1px solid var(--auth-border-soft);
    box-shadow: var(--auth-shadow);
    overflow: hidden;
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(178, 71, 249, 0.12), transparent 34%),
        linear-gradient(315deg, rgba(71, 216, 255, 0.12), transparent 30%);
    pointer-events: none;
}

.auth-showcase-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.auth-showcase-title {
    margin: 0 0 16px;
    font-family: var(--auth-font-head);
    font-size: clamp(34px, 4.1vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.auth-showcase-desc {
    max-width: 560px;
    margin: 0 0 26px;
    color: var(--auth-text-soft);
    font-size: 16px;
    line-height: 1.8;
}

.auth-showcase-panel {
    position: relative;
    display: grid;
    grid-template-columns: 152px 1fr;
    gap: 26px;
    align-items: center;
    padding: 24px 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-showcase-visual {
    position: relative;
    width: 152px;
    height: 152px;
    display: grid;
    place-items: center;
}

.auth-showcase-logo {
    position: relative;
    z-index: 2;
    width: 108px;
    height: 108px;
    border-radius: 28px;
}

.auth-showcase-rings {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 18px rgba(255, 255, 255, 0.03),
        0 0 0 36px rgba(90, 109, 255, 0.05);
}

.auth-showcase-points {
    display: grid;
    gap: 12px;
}

.auth-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    line-height: 1.7;
}

.auth-point::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: 9px;
    border-radius: 50%;
    background: var(--auth-grad);
    box-shadow: 0 0 12px rgba(71, 216, 255, 0.3);
    flex-shrink: 0;
}

.auth-card {
    display: flex;
    align-items: stretch;
    border-radius: var(--auth-radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 255, 0.96) 100%);
    box-shadow: var(--auth-shadow);
    overflow: hidden;
}

.auth-card-inner {
    width: 100%;
    padding: 42px;
    color: var(--auth-text-main);
}

.auth-card-top {
    margin-bottom: 26px;
}

.auth-card-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--auth-secondary);
}

.auth-card-title {
    margin: 0 0 10px;
    font-family: var(--auth-font-head);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.auth-card-subtitle {
    margin: 0;
    color: var(--auth-text-sub);
    font-size: 15px;
    line-height: 1.75;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--auth-radius-md);
    font-size: 14px;
    line-height: 1.6;
}

.auth-alert-success {
    background: var(--auth-success-bg);
    color: var(--auth-success-text);
}

.auth-alert-error {
    background: var(--auth-error-bg);
    color: var(--auth-error-text);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-label {
    font-family: var(--auth-font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--auth-text-main);
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--auth-radius-md);
    border: 1px solid var(--auth-input-border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--auth-text-main);
    font-size: 15px;
    font-family: var(--auth-font-body);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.auth-input:focus {
    border-color: rgba(90, 109, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(90, 109, 255, 0.12);
    transform: translateY(-1px);
}

.auth-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    border: 0;
    font-family: var(--auth-font-head);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.auth-btn:hover {
    transform: translateY(-2px);
}

.auth-btn-primary {
    color: #fff;
    background: var(--auth-grad);
    box-shadow: 0 14px 28px rgba(90, 109, 255, 0.28);
}

.auth-btn-secondary {
    color: var(--auth-primary);
    background: rgba(90, 109, 255, 0.08);
    border: 1px solid rgba(90, 109, 255, 0.14);
}

.auth-card-foot {
    margin-top: 20px;
    color: var(--auth-text-sub);
    font-size: 14px;
    line-height: 1.7;
}

.auth-card-foot a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 700;
}

.auth-card-foot a:hover {
    color: var(--auth-secondary);
}

@media (max-width: 1024px) {
    .auth-frame {
        grid-template-columns: 1fr;
    }

    .auth-showcase,
    .auth-card-inner {
        padding: 34px;
    }
}

@media (max-width: 720px) {
    .auth-shell {
        padding: 112px 16px 64px;
    }

    .auth-showcase,
    .auth-card-inner {
        padding: 24px 20px;
    }

    .auth-showcase-panel {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: left;
    }

    .auth-showcase-visual {
        width: 128px;
        height: 128px;
    }

    .auth-showcase-logo {
        width: 92px;
        height: 92px;
        border-radius: 24px;
    }

    .auth-showcase-rings {
        inset: 8px;
    }

    .auth-actions {
        flex-direction: column;
    }

    .auth-btn {
        width: 100%;
    }
}
