/* ==========================================================================
   TheAfricaPlus — editorial sign-in
   ========================================================================== */

.auth-page {
    min-height: 100vh;
    background: #eef1f7;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(480px, .92fr);
    min-height: 100vh;
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 620px;
    overflow: hidden;
    padding: 34px 48px 30px;
    color: #fff;
    background: #071b52;
}

.auth-visual-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    filter: saturate(.85);
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 16, 49, .97) 0%, rgba(4, 16, 49, .8) 46%, rgba(4, 16, 49, .3) 100%),
        linear-gradient(0deg, rgba(4, 16, 49, .82) 0%, transparent 50%);
}

.auth-visual-top,
.auth-visual-copy,
.auth-visual-foot {
    position: relative;
    z-index: 2;
}

.auth-visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-auth .brand-mark {
    width: auto;
    height: 52px;
}

.brand-auth .brand-name {
    color: #fff;
    font-size: 30px;
}

.brand-auth .brand-tagline {
    color: #b8c6e4;
    font-size: 10px;
    white-space: normal;
}

.auth-visual-copy {
    max-width: 570px;
    margin: auto 0;
    padding: 50px 0;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #ffb27a;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--orange);
}

.auth-eyebrow-dark {
    color: var(--orange-deep);
}

.auth-visual-copy h1 {
    max-width: 520px;
    margin: 0 0 17px;
    color: #fff;
    font-size: clamp(42px, 5.2vw, 67px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.055em;
}

.auth-visual-copy p {
    max-width: 410px;
    margin: 0;
    color: #c4d0e8;
    font-size: 15.5px;
    line-height: 1.7;
}

.auth-visual-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: #b4c1dc;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.auth-visual-foot .live-dot {
    margin-right: 2px;
}

.auth-foot-divider {
    width: 1px;
    height: 12px;
    margin-inline: 7px;
    background: rgba(255, 255, 255, .2);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px 32px;
    background: #fff;
}

.auth-panel-inner {
    width: 100%;
    max-width: 415px;
}

.auth-mobile-brand {
    display: none;
    margin-bottom: 34px;
}

.auth-heading {
    margin-bottom: 23px;
}

.auth-heading .auth-eyebrow {
    margin-bottom: 10px;
}

.auth-heading h2 {
    margin-bottom: 7px;
    font-size: 37px;
    letter-spacing: -.045em;
}

.auth-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

.auth-alert {
    margin-bottom: 17px;
    padding: 11px 13px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.5;
}

.auth-alert-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.auth-alert-info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field label {
    color: #34405c;
    font-size: 11.5px;
    font-weight: 700;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 49px;
    padding: 0 13px;
    border: 1px solid #d8deea;
    border-radius: 7px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.auth-input-wrap:focus-within {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(7, 27, 82, .07);
}

.auth-input-wrap .icon {
    width: 17px;
    height: 17px;
    color: #8a94aa;
}

.auth-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 47px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13.5px;
}

.auth-input-wrap input::placeholder {
    color: #a1a9b9;
}

.password-toggle {
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 51px;
    margin-top: 3px;
    padding: 0 17px 0 20px;
    border: 0;
    border-radius: 7px;
    background: var(--orange);
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(249, 115, 22, .22);
    transition: background .18s ease, transform .18s ease;
}

.auth-submit:hover {
    background: var(--orange-deep);
    transform: translateY(-1px);
}

.auth-submit .icon {
    width: 17px;
    height: 17px;
}

.auth-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.auth-role {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px;
    border: 1px solid #edf0f5;
    border-radius: 6px;
    background: #fafbfd;
}

.auth-role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 5px;
    background: #eef3ff;
    color: var(--blue);
}

.auth-role-icon .icon {
    width: 15px;
    height: 15px;
}

.auth-role strong {
    display: block;
    margin-bottom: 2px;
    color: #25314f;
    font-size: 10.5px;
    font-weight: 800;
}

.auth-role span {
    display: block;
    color: #828ca1;
    font-size: 9.5px;
    line-height: 1.4;
}

.auth-back {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 26px;
    color: #8b94a7;
    font-size: 10.5px;
}

.auth-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #34405c;
    font-weight: 700;
}

.auth-back a:hover {
    color: var(--orange-deep);
}

.auth-back .icon {
    width: 13px;
    height: 13px;
}

@media (max-width: 1050px) {
    .auth-shell {
        grid-template-columns: minmax(0, .9fr) minmax(450px, 1.1fr);
    }

    .auth-visual {
        padding-inline: 34px;
    }

    .auth-visual-copy h1 {
        font-size: 45px;
    }
}

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

    .auth-visual {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        align-items: flex-start;
        padding: 34px 22px 48px;
    }

    .auth-panel-inner {
        max-width: 440px;
        padding-top: 6vh;
    }

    .auth-mobile-brand {
        display: inline-flex;
    }

    .auth-mobile-brand .brand-mark {
        height: 45px;
    }

    .auth-mobile-brand .brand-name {
        font-size: 27px;
    }
}

@media (max-width: 480px) {
    .auth-panel {
        padding-inline: 17px;
    }

    .auth-panel-inner {
        padding-top: 2vh;
    }

    .auth-heading h2 {
        font-size: 32px;
    }

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