/* ============================================
   Auth Pages – Login & Register
   ============================================ */

body.login-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 0, 51, .18), transparent 28%),
        radial-gradient(circle at 20% 20%, rgba(255, 61, 61, .12), transparent 24%),
        linear-gradient(180deg, #050505 0%, #090909 55%, #000000 100%);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow: hidden;
}

body.login-page::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 0;
    pointer-events: none;
}

body.login-page::after {
    display: none;
}

.login-stage {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.login-lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 14px;
}

.login-lang-chip {
    min-width: 44px;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.72);
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.login-lang-chip.active {
    color: #ffffff;
    border-color: rgba(255, 48, 79, .55);
    background: rgba(255, 48, 79, .14);
    box-shadow: 0 0 16px rgba(255, 48, 79, .14);
}

.login-stage::before {
    content: "";
    position: absolute;
    inset: -18px;
    background: radial-gradient(circle, rgba(255, 0, 51, .2), transparent 62%);
    filter: blur(18px);
    z-index: -1;
}

.login-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .1);
    background:
        linear-gradient(180deg, rgba(20,20,20,.96), rgba(5,5,5,.98)),
        #050505;
    border-radius: var(--radius-lg);
    padding: 34px 32px 28px;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, .55),
        0 0 40px rgba(255, 0, 51, .12),
        inset 0 1px 0 rgba(255,255,255,.05);
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 0, 51, .18), transparent 26%),
        linear-gradient(315deg, rgba(255,255,255,.05), transparent 30%);
    pointer-events: none;
}

.login-top,
.login-copy,
.login-form-wrap,
.login-bottom {
    position: relative;
    z-index: 1;
}

.login-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.login-mark {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1a1a1a, #0b0b0b);
    border: 1px solid rgba(255, 0, 51, .45);
    color: var(--brand-500);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.04em;
    box-shadow: 0 0 22px rgba(255, 0, 51, .18);
}

.login-brandline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Brand mark — small logo, NOT the page headline */
.login-brandline h1 {
    margin: 0;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: #ffffff;
}

.login-brandline h1 span {
    color: var(--brand-500);
    text-shadow: 0 0 18px rgba(255, 48, 79, .28);
}

.login-brandline p {
    margin: 0;
    color: rgba(255,255,255,.64);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.login-copy {
    margin-bottom: 24px;
}

.login-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 0, 51, .12);
    border: 1px solid rgba(255, 0, 51, .28);
    color: var(--brand-300);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.login-copy .eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-500);
    box-shadow: 0 0 12px rgba(255, 48, 79, .7);
}

/* Page headline — primary focal point */
.login-copy h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.05em;
}

.login-copy p {
    margin: 0;
    color: rgba(255,255,255,.7);
    font-size: 15px;
    line-height: 1.6;
}

.login-form-wrap .form-group {
    margin-bottom: 16px;
}

.login-form-wrap label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-form-wrap .form-control {
    width: 100%;
    min-height: 54px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.92);
    color: #ffffff;
    padding: 14px 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.login-form-wrap .form-control::placeholder {
    color: rgba(255,255,255,.5);
}

.login-form-wrap .form-control:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow:
        0 0 0 3px rgba(255, 48, 79, .12),
        0 0 24px rgba(255, 48, 79, .14);
}

.login-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 8px;
    border: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--brand-600) 0%, var(--brand-700) 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.02em;
    box-shadow:
        0 16px 30px rgba(213, 15, 47, .3),
        inset 0 1px 0 rgba(255,255,255,.12);
}

.login-submit:hover {
    background: linear-gradient(180deg, var(--brand-400) 0%, var(--brand-600) 100%);
    transform: translateY(-1px);
}

.login-bottom {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,.42);
    font-size: 14px;
}

.login-bottom a {
    color: var(--brand-500);
    font-weight: 700;
    text-decoration: none;
}

.login-bottom a:hover {
    color: var(--brand-400);
}

.login-card .alert {
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    body.login-page {
        padding: 16px;
    }

    .login-card {
        padding: 26px 22px 22px;
        border-radius: var(--radius-lg);
    }

    .login-brandline h1 {
        font-size: 20px;
    }

    .login-copy h2 {
        font-size: 28px;
    }

    .login-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
