body {
    background: #f8fafc;
}

.auth-bg-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.auth-bg-glow-a {
    background: #3a7cf6;
    top: -140px;
    right: -140px;
}

.auth-bg-glow-b {
    background: #12b49a;
    bottom: -160px;
    left: -140px;
}

.auth-overlay {
    position: relative;
    padding: 24px;
    z-index: 1;
}

.auth-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
    gap: 16px;
    align-items: stretch;
}

.auth-showcase {
    border-radius: 26px;
    border: 1px solid #cddcf0;
    background: linear-gradient(155deg, #0e295d 0%, #104696 52%, #0e6f8f 100%);
    color: #e7f1ff;
    padding: clamp(24px, 4vw, 44px);
    box-shadow: 0 26px 60px rgba(14, 33, 66, 0.26);
    display: flex;
    flex-direction: column;
}

.auth-showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-brand {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.auth-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
}

.auth-brand span {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.05;
}

.auth-brand small {
    display: block;
    color: #cae1ff;
    font-size: 12px;
}

.auth-showcase h1 {
    margin: 18px 0 0;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(31px, 4.7vw, 46px);
    line-height: 1.05;
}

.auth-showcase > p {
    margin: 14px 0 0;
    color: #d2e3ff;
    line-height: 1.6;
    max-width: 630px;
}

.auth-showcase-points {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.auth-showcase-points article {
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(225, 239, 255, 0.24);
}

.auth-showcase-points h3 {
    margin: 0;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 17px;
}

.auth-showcase-points p {
    margin: 6px 0 0;
    color: #e3f0ff;
    line-height: 1.5;
}

.auth-showcase-link {
    margin-top: auto;
    padding-top: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
    width: fit-content;
}

.auth-container {
    max-width: none;
    border-radius: 24px;
    border: 1px solid #d4e1f3;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 48px rgba(15, 30, 58, 0.16);
    padding: 26px;
}

.auth-lang-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #d8e4f4;
    border-radius: 999px;
    padding: 3px;
    gap: 4px;
}

.lang-btn {
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 700;
    color: #5c6f8f;
    cursor: pointer;
}

.lang-btn.active {
    background: #ffffff;
    color: #395af2;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.auth-lang-row-showcase {
    margin-bottom: 0;
    margin-top: 0;
    justify-content: flex-end;
}

.auth-lang-row-showcase .lang-toggle {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(210, 229, 255, 0.3);
}

.auth-lang-row-showcase .lang-btn {
    color: #d6e6ff;
}

.auth-lang-row-showcase .lang-btn.active {
    background: rgba(255, 255, 255, 0.95);
    color: #1f4fc9;
    box-shadow: 0 6px 14px rgba(11, 28, 63, 0.2);
}

.auth-tabs {
    border: 1px solid #d8e4f4;
    border-radius: 999px;
    overflow: hidden;
    padding: 3px;
    gap: 4px;
    background: #eff4fb;
}

.tab-btn {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 0;
}

.tab-btn.active {
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.auth-container h2 {
    margin: 16px 0 8px;
    font-family: "Space Grotesk", "Manrope", sans-serif;
}

.form-group input {
    background: #f8fbff;
}

.form-label-optional {
    font-weight: 400;
    color: #7a8fa8;
    font-size: 13px;
}

.referral-hint {
    display: block;
    margin-block-start: 5px;
    color: #0f766e;
    font-size: 13px;
}

.auth-container .btn-primary {
    width: 100%;
    max-width: none;
    margin-top: 4px;
}

.btn-google {
    border-radius: 12px;
    font-weight: 600;
}

.divider span {
    background: transparent;
}

@media (max-width: 1020px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 540px;
    }

    .auth-showcase {
        order: 2;
    }

    .auth-container {
        order: 1;
    }

    .auth-showcase h1 {
        font-size: 34px;
    }
}

@media (max-width: 560px) {
    .auth-overlay {
        padding: 12px;
    }

    .auth-container,
    .auth-showcase {
        padding: 18px;
        border-radius: 18px;
    }

    .auth-tabs {
        border-radius: 14px;
        flex-wrap: wrap;
    }

    .auth-showcase-top {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .tab-btn {
        min-width: 48%;
    }
}
