﻿/* =====================================================================
   BEXBID â€” Login 2026 (split card)
   Palette : #00D163 / #00A34D / #141414 / #FFFFF0 / #0D1520 / #E5E9EF
   Scope : .bx-login (n'affecte pas les autres pages auth)
   ===================================================================== */

.bx-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #0D1520;
    background-color: #F5F7FA;
    background-image:
        linear-gradient(to right, rgba(13, 21, 32, .055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 21, 32, .055) 1px, transparent 1px);
    background-size: 44px 44px;
}

.bx-login * { box-sizing: border-box; }

.bx-login-card {
    width: 100%;
    max-width: 1080px;
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    background: #ffffff;
    border: 1px solid #E5E9EF;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(15, 24, 38, .25), 0 2px 6px rgba(15, 24, 38, .04);
}

/* ---------- panneau marque ---------- */
.bx-login-brand {
    position: relative;
    padding: 48px 52px;
    background: #141414;
    color: #FFFFF0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.bx-login-brand::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(closest-side, rgba(0, 209, 99, .22), rgba(0, 209, 99, .06) 55%, rgba(0, 209, 99, 0) 72%);
    pointer-events: none;
}

.bx-login-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.bx-login-brand-logo {
    position: relative;
    z-index: 1;
    width: 140px;
    height: auto;
    display: block;
    margin: 0;
    filter: brightness(0) invert(1);
}

.bx-login-brand-name {
    position: relative;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -.02em;
    color: #FFFFF0;
}

.bx-login-middle {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto 0;
}

.bx-login-visual {
    width: 240px;
    height: auto;
    display: block;
    margin: 0 0 20px;
    opacity: .9;
    filter: brightness(0) invert(1);
}

.bx-login-copy { text-align: center; }

.bx-login-copy h1 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 12px;
    color: #FFFFF0;
}

.bx-login-copy p {
    margin: 0 auto;
    max-width: 260px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 240, .62);
}

/* ---------- formulaire ---------- */
.bx-login-form {
    position: relative;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bx-login-logo {
    width: 132px;
    height: auto;
    display: block;
    margin-bottom: 30px;
}

.bx-login-name {
    display: inline-block;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #0D1520;
}

.bx-login-form h2 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 8px;
    color: #0D1520;
}

.bx-login-sub {
    margin: 0 0 28px;
    font-size: 14px;
    color: #4B5565;
}

.bx-field { margin-bottom: 16px; }

.bx-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4B5565;
    margin-bottom: 8px;
}

.bx-field input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 15px;
    color: #0D1520;
    background: #ffffff;
    border: 1px solid #E5E9EF;
    border-radius: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.bx-field input::placeholder { color: #8A94A6; }

.bx-field input:focus {
    border-color: #00D163;
    box-shadow: 0 0 0 3px rgba(0, 209, 99, .16);
}

.bx-pw { position: relative; }

.bx-pw input { padding-right: 70px; }

.bx-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 6px 8px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8A94A6;
    cursor: pointer;
    border-radius: 6px;
}

.bx-pw-toggle:hover { color: #007A3D; }

.bx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 24px;
}

.bx-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #4B5565;
    cursor: pointer;
    user-select: none;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}

.bx-check input {
    width: 16px;
    height: 16px;
    accent-color: #00D163;
    margin: 0;
}

.bx-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #007A3D;
    text-decoration: none;
}

.bx-link:hover { color: #00A34D; text-decoration: underline; }

.bx-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: #00D163;
    color: #02120A;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 3px 3px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 #00A34D;
    transition: background .15s, transform .08s, box-shadow .15s;
}

.bx-btn:hover {
    background: #00c25c;
    box-shadow: 0 6px 16px rgba(0, 209, 99, .28), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 #00A34D;
}

.bx-btn:active { transform: translateY(1px); }

.bx-btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.bx-btn-link:hover { text-decoration: none; color: #02120A; }

.bx-signup {
    margin: 26px 0 0;
    font-size: 14px;
    color: #4B5565;
    text-align: center;
}

.bx-signup a {
    color: #007A3D;
    font-weight: 600;
    text-decoration: none;
}

.bx-signup a:hover { text-decoration: underline; }

.bx-help {
    font-size: 12px;
    color: #8A94A6;
    margin: 4px 0 10px;
}

.bx-2fa { margin-top: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
    .bx-login { padding: 20px 14px; }
    .bx-login-card {
        grid-template-columns: 1fr;
        min-height: 0;
        max-width: 480px;
    }
    .bx-login-brand { display: none; }
    .bx-login-form { padding: 36px 28px 40px; }
    .bx-login-logo { width: 120px; margin-bottom: 24px; }
    .bx-login-form h2 { font-size: 23px; }
}

@media (max-width: 420px) {
    .bx-login-form { padding: 30px 20px 34px; }
    .bx-row { flex-wrap: wrap; }
}

/* segmented role switcher (Publisher / Advertiser) dans le split */
.bx-login .bx-role {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    background: #f5f7fa;
    border: 1px solid #E5E9EF;
    border-radius: 12px;
}
.bx-login label.bx-role-opt {
    position: relative;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: #4B5565;
}

.bx-kicker {
    margin: 0 0 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8A94A6;
}
