/* ==========================================================================
   Login — layout preluat din platforma trans.business-erp.ro (design "cx").

   Pagina de login NU extinde base.html.twig, deci nu are acces la CSS-ul
   global al aplicației. Din acest motiv fișierul își aduce singur tokenurile
   (:root) și componentele minime (.cx-card, .cx-btn, .cx-label, form controls)
   de care are nevoie. Restul aplicației nu este afectat.
   ========================================================================== */

:root {
    --cx-brand: #134a6d;
    --cx-brand-deep: #0d3550;
    --cx-ink: #1b2733;
    --cx-muted: #6b7c8c;
    --cx-line: #e3e9ee;
    --cx-surface: #ffffff;
    --cx-canvas: #f4f6f9;
    --cx-radius: 10px;
    --cx-shadow: 0 1px 2px rgba(16, 40, 60, .05), 0 6px 18px rgba(16, 40, 60, .05);
    --cx-rail-deep: #0a1b2a;
}

body.login-page {
    min-height: 100vh;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cx {
    color: var(--cx-ink);
}

/* ---------- componente ---------- */

.cx-card {
    background: var(--cx-surface);
    border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius);
    box-shadow: var(--cx-shadow);
}

.cx-card-body {
    padding: 20px;
}

.cx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--cx-brand);
    border: 1px solid var(--cx-brand);
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease;
}

.cx-btn:hover {
    color: #fff;
    background: var(--cx-brand-deep);
    border-color: var(--cx-brand-deep);
    box-shadow: 0 4px 14px rgba(19, 74, 109, .22);
}

.cx-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #3d4b57;
}

.cx .form-control,
.cx .input-group-text {
    border-color: #d8e0e7;
    border-radius: 7px;
}

.cx .form-control {
    height: 38px;
    font-size: 14px;
}

.cx .form-control:focus {
    border-color: #2f7fab;
    box-shadow: 0 0 0 3px rgba(28, 109, 156, .13);
}

.cx .input-group > .form-control {
    border-right: 0;
}

.cx .input-group-text {
    color: #8fa0ae;
    background: #f6f8fa;
}

/* ---------- structura paginii ---------- */

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ---------- panoul de brand ---------- */

/* Scopat pe `.cx` ca să bată `color: var(--cx-ink)` de mai sus. */
.cx .auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 52%;
    padding: 56px 64px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1200px 600px at 15% 0%, rgba(28, 109, 156, .5), transparent 65%),
        linear-gradient(160deg, var(--cx-brand) 0%, var(--cx-brand-deep) 55%, var(--cx-rail-deep) 100%);
}

/* Grilă discretă de tip blueprint — ține panoul să nu arate ca un bloc plat. */
.auth-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(900px 500px at 25% 35%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(900px 500px at 25% 35%, #000 20%, transparent 80%);
    pointer-events: none;
}

.auth-brand > * {
    position: relative;
    z-index: 1;
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.auth-brand-tile {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
}

.auth-brand-word {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.auth-brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .12em;
}

.auth-brand-tagline {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

.auth-brand-copy h1 {
    max-width: 15ch;
    margin: 0 0 18px;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.auth-brand-copy p {
    max-width: 46ch;
    margin: 0 0 34px;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .72);
}

.auth-points {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, .86);
}

.auth-points i {
    font-size: 12px;
    color: #4da3d4;
}

.auth-brand-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

/* ---------- panoul de formular ---------- */

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 48%;
    padding: 48px 32px;
    background: var(--cx-canvas);
}

.auth-col {
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 28px;
}

.auth-card-head {
    padding: 24px 24px 0;
}

.auth-card-head h1 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--cx-ink);
}

.auth-card-head p {
    margin: 0;
    font-size: 14px;
    color: var(--cx-muted);
}

.auth-card .cx-card-body {
    padding: 22px 24px 24px;
}

/* ---------- câmpuri ---------- */

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

/* Inputurile sistemului sunt dimensionate pentru pagini dense de tip grilă;
   un formular de autentificare nu e dens, deci urcă la 44px, confortabil. */
.cx .auth-field .form-control,
.cx .auth-field .input-group-text {
    height: 44px;
    font-size: 15px;
}

.auth-field .input-group-text {
    width: 44px;
    justify-content: center;
}

.auth-reveal {
    color: #8fa0ae;
    cursor: pointer;
}

.auth-reveal:hover {
    color: var(--cx-brand);
    background: #eef2f6;
}

.cx .auth-submit {
    justify-content: center;
    width: 100%;
    height: 44px;
    margin-top: 4px;
    font-size: 15px;
}

/* ---------- subsol ---------- */

.auth-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 0;
    font-size: 12.5px;
    color: var(--cx-muted);
}

.auth-foot i {
    color: #4c9a6a;
}

/* ---------- responsive ---------- */

@media (max-width: 1199.98px) {
    .cx .auth-brand {
        padding: 48px;
    }

    .auth-brand-copy h1 {
        font-size: 36px;
    }
}

@media (max-width: 991.98px) {
    .auth-shell {
        flex-direction: column;
    }

    .cx .auth-brand {
        flex: 0 0 auto;
        padding: 24px;
    }

    .auth-brand-copy,
    .auth-brand-foot {
        display: none;
    }

    .auth-panel {
        flex: 1 1 auto;
        padding: 40px 24px;
    }

    .auth-logo {
        margin-bottom: 24px;
    }
}
