.auth-wrapper {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(22px, 5vw, 52px) 18px;
    overflow: hidden;
    z-index: 0;
}

.auth-wrapper::before,
.auth-wrapper::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.auth-wrapper::before {
    inset: 7% auto auto -7%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 215, 255, 0.22), transparent 70%);
    filter: blur(10px);
}

.auth-wrapper::after {
    inset: auto -10% -12% auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 99, 255, 0.22), transparent 72%);
    filter: blur(18px);
}

.auth-wrapper.auth-login-layout {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: clamp(24px, 4vw, 44px);
    align-items: stretch;
}

.auth-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: clamp(28px, 5vw, 44px);
    border-radius: 32px;
    border: 1px solid rgba(94, 222, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(8, 22, 36, 0.72), rgba(3, 11, 19, 0.28)),
        linear-gradient(135deg, rgba(57, 215, 255, 0.1), transparent 42%, rgba(59, 99, 255, 0.14));
    overflow: hidden;
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: auto -8% -22% 42%;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 99, 255, 0.2), transparent 68%);
    filter: blur(22px);
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(94, 222, 255, 0.18);
    background: rgba(6, 18, 31, 0.58);
    color: var(--wk-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.auth-chip-soft {
    align-self: center;
}

.auth-hero-logo {
    width: min(100%, 310px);
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(59, 99, 255, 0.2));
}

.auth-kicker {
    margin: 0 0 12px;
    color: rgba(142, 245, 255, 0.86);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.auth-showcase-title {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: #f2fbff;
}

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

.auth-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.auth-stat-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(94, 222, 255, 0.1);
    background: rgba(5, 16, 28, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-stat-card strong {
    display: block;
    margin-top: 12px;
    color: var(--wk-text);
    font-size: 18px;
}

.auth-stat-card p {
    margin: 10px 0 0;
    color: var(--wk-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.auth-stat-label {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(59, 99, 255, 0.16);
    color: #9cb4ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-card {
    position: relative;
    width: min(100%, 450px);
    padding: clamp(24px, 4vw, 34px);
    border-radius: 30px;
    border: 1px solid rgba(94, 222, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(7, 21, 35, 0.94), rgba(4, 13, 23, 0.96)),
        linear-gradient(135deg, rgba(57, 215, 255, 0.08), transparent 40%, rgba(59, 99, 255, 0.12));
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(94, 222, 255, 0.28), rgba(59, 99, 255, 0.18));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.auth-card-login {
    justify-self: end;
}

.brand-header {
    margin-bottom: 1.8rem;
    text-align: center;
}

.brand-header-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-login {
    width: 100%;
}

.brand-lockup {
    width: min(100%, 240px);
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 30px rgba(57, 99, 255, 0.18));
}

.brand-lockup-login {
    width: min(100%, 220px);
}

.auth-title {
    margin: 0;
    color: #effaff;
    font-size: clamp(28px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-subtitle {
    color: var(--wk-text-muted);
    margin-bottom: 0;
    line-height: 1.75;
}

.form-floating > .form-control,
.form-floating > .form-control-plaintext {
    min-height: 58px;
    padding: 1.35rem 1rem 0.75rem;
    border-radius: 18px;
    background: rgba(5, 16, 28, 0.92) !important;
    border: 1px solid rgba(94, 222, 255, 0.14) !important;
    color: var(--wk-text) !important;
}

.form-floating > label {
    color: var(--wk-text-muted) !important;
    padding: 1rem;
}

.form-control:focus {
    border-color: rgba(94, 222, 255, 0.34) !important;
    box-shadow: 0 0 0 0.25rem rgba(57, 215, 255, 0.14) !important;
    background: rgba(7, 19, 31, 0.96) !important;
}

.btn-gradient {
    --g1: #3b63ff;
    --g2: #39d7ff;
    background-image: linear-gradient(135deg, var(--g1), var(--g2));
    color: #ffffff !important;
    border: 0;
    border-radius: 18px;
    min-height: 56px;
    padding: 14px 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 34px rgba(34, 211, 238, 0.2);
    transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-gradient:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(34, 211, 238, 0.24);
}

.btn-outline-primary,
.send-email-code,
.send-phone-captcha,
.send-email-captcha {
    border-radius: 16px !important;
    border: 1px solid rgba(94, 222, 255, 0.18) !important;
    background: rgba(9, 25, 41, 0.82) !important;
    color: var(--wk-accent) !important;
    box-shadow: none !important;
}

.btn-outline-primary:hover,
.send-email-code:hover,
.send-phone-captcha:hover,
.send-email-captcha:hover {
    background: rgba(13, 33, 54, 0.94) !important;
    color: #ffffff !important;
}

.auth-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 2px 0 18px;
}

.form-check {
    padding: 0;
    margin: 0;
    color: var(--wk-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid rgba(94, 222, 255, 0.26);
    border-radius: 6px;
    background: rgba(5, 16, 28, 0.92);
    cursor: pointer;
    position: relative;
    transition: all 0.18s ease;
}

.form-check input[type=checkbox]:checked {
    border-color: transparent;
    background: linear-gradient(135deg, #3b63ff, #39d7ff);
}

.form-check input[type=checkbox]:checked::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 2px;
    background: #ffffff;
}

.form-check label {
    cursor: pointer;
    user-select: none;
}

.divider {
    position: relative;
    text-align: center;
    margin: 18px 0;
    color: var(--wk-text-muted);
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: linear-gradient(90deg, rgba(94, 222, 255, 0), rgba(94, 222, 255, 0.4), rgba(94, 222, 255, 0));
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.text-link {
    color: var(--wk-accent) !important;
    text-decoration: none;
}

.text-link:hover {
    color: #ffffff !important;
}

.image-code,
.prompt-image-code {
    width: 100%;
    min-height: 58px;
    object-fit: cover;
    border: 1px solid rgba(94, 222, 255, 0.2) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    opacity: 1 !important;
}

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

    .auth-card-login {
        order: -1;
        justify-self: stretch;
    }

    .auth-stat-grid {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .auth-wrapper {
        padding-inline: 14px;
    }

    .auth-card,
    .auth-showcase {
        padding: 22px;
        border-radius: 24px;
    }

    .auth-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-showcase-title {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }
}
