:root {
    --bg:
        #02050c;

    --panel:
        rgba(7, 13, 23, .88);

    --panel-soft:
        rgba(10, 18, 31, .72);

    --gold:
        #d8b45d;

    --gold-light:
        #f5dfa0;

    --gold-deep:
        #9b7028;

    --blue:
        #23a9f3;

    --text:
        #f6f7fa;

    --muted:
        #929baa;

    --line:
        rgba(255,255,255,.09);

    --danger:
        #ff8e8e;

    --success:
        #8bd7ad;
}


* {
    box-sizing:
        border-box;
}


html {
    min-height:
        100%;

    background:
        var(--bg);
}


body {
    margin:
        0;

    min-height:
        100vh;

    overflow-x:
        hidden;

    color:
        var(--text);

    background:
        radial-gradient(
            circle at 50% -15%,
            rgba(16,103,162,.20),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            #030710 0%,
            #02050c 56%,
            #010307 100%
        );

    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;

    -webkit-font-smoothing:
        antialiased;
}


button,
input {
    font:
        inherit;
}


button {
    -webkit-tap-highlight-color:
        transparent;
}


.ambient {
    position:
        fixed;

    width:
        650px;

    height:
        650px;

    border-radius:
        50%;

    filter:
        blur(140px);

    pointer-events:
        none;

    z-index:
        -3;
}


.ambient-blue {
    right:
        -270px;

    top:
        -350px;

    background:
        rgba(24,126,192,.26);
}


.ambient-gold {
    left:
        -330px;

    bottom:
        -430px;

    background:
        rgba(159,119,39,.17);
}


.grid {
    position:
        fixed;

    inset:
        0;

    z-index:
        -2;

    pointer-events:
        none;

    opacity:
        .07;

    background-image:
        linear-gradient(
            rgba(255,255,255,.05) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.05) 1px,
            transparent 1px
        );

    background-size:
        70px 70px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 25%,
            black 75%,
            transparent
        );
}


/* HEADER */

.topbar {
    width:
        min(1180px, calc(100% - 40px));

    min-height:
        86px;

    margin:
        0 auto;

    display:
        flex;

    align-items:
        center;

    gap:
        24px;

    border-bottom:
        1px solid var(--line);
}


.brand {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        15px;

    direction:
        ltr;

    text-decoration:
        none;
}


.brand-logo {
    width:
        112px;

    height:
        48px;

    object-fit:
        cover;

    border-radius:
        8px;

    mix-blend-mode:
        screen;
}


.brand-wordmark {
    display:
        inline-flex;

    align-items:
        baseline;

    gap:
        6px;

    white-space:
        nowrap;

    font-family:
        Georgia,
        "Palatino Linotype",
        "Times New Roman",
        serif;

    font-size:
        31px;

    letter-spacing:
        -.035em;
}


.brand-wordmark strong,
.brand-wordmark em {
    background:
        linear-gradient(
            135deg,
            #fff4c7 0%,
            #e7c66f 45%,
            #ae7d2b 100%
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;
}


.brand-wordmark strong {
    font-weight:
        700;
}


.brand-wordmark em {
    font-size:
        32px;

    font-weight:
        700;

    font-style:
        italic;
}


.topbar-line {
    height:
        1px;

    flex:
        1;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(216,180,93,.20),
            transparent
        );
}


/* PAGE */

.auth-shell {
    width:
        min(1120px, calc(100% - 40px));

    margin:
        0 auto;

    min-height:
        calc(100vh - 172px);

    padding:
        62px 0 76px;

    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(390px, 500px);

    align-items:
        center;

    gap:
        clamp(48px, 8vw, 110px);
}


/* IDENTITY */

.identity-panel {
    text-align:
        center;
}


.logo-stage {
    position:
        relative;

    display:
        grid;

    place-items:
        center;
}


.logo-glow {
    position:
        absolute;

    width:
        72%;

    height:
        60%;

    border-radius:
        50%;

    background:
        rgba(26,151,226,.13);

    filter:
        blur(60px);
}


.hero-logo {
    position:
        relative;

    width:
        min(505px, 100%);

    height:
        auto;

    display:
        block;

    object-fit:
        contain;

    border:
        1px solid
        rgba(216,180,93,.17);

    border-radius:
        17px;

    background:
        #02050b;

    box-shadow:
        0 30px 85px
        rgba(0,0,0,.40),
        0 0 42px
        rgba(25,161,241,.07);
}


.identity-copy {
    margin-top:
        26px;
}


.eyebrow,
.mini-label {
    color:
        var(--gold);

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        .32em;

    direction:
        ltr;
}


.identity-copy h1 {
    margin:
        12px 0 0;

    font-size:
        clamp(40px, 5vw, 62px);

    line-height:
        1.05;

    font-weight:
        300;
}


.identity-copy p {
    margin:
        15px 0 0;

    color:
        var(--muted);

    font-size:
        15px;
}


/* AUTH CARD */

.auth-card {
    position:
        relative;

    overflow:
        hidden;

    padding:
        20px;

    border:
        1px solid
        rgba(255,255,255,.095);

    border-radius:
        25px;

    background:
        linear-gradient(
            145deg,
            rgba(11,20,34,.94),
            rgba(5,10,18,.91)
        );

    box-shadow:
        0 38px 100px
        rgba(0,0,0,.38),
        inset 0 1px 0
        rgba(255,255,255,.035);

    backdrop-filter:
        blur(18px);
}


.auth-card::before {
    content:
        "";

    position:
        absolute;

    top:
        0;

    right:
        17%;

    left:
        17%;

    height:
        1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(233,197,111,.55),
            transparent
        );
}


.auth-tabs {
    padding:
        5px;

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        5px;

    border:
        1px solid var(--line);

    border-radius:
        14px;

    background:
        rgba(1,5,11,.58);
}


.auth-tab {
    min-height:
        45px;

    border:
        0;

    border-radius:
        10px;

    color:
        #8993a2;

    background:
        transparent;

    font-size:
        13px;

    font-weight:
        650;

    cursor:
        pointer;

    transition:
        .22s ease;
}


.auth-tab:hover {
    color:
        #e8edf4;
}


.auth-tab.active {
    color:
        #181104;

    background:
        linear-gradient(
            135deg,
            #f5df9e,
            #d9b359 58%,
            #a87929
        );

    box-shadow:
        0 10px 28px
        rgba(159,115,36,.14);
}


.auth-view {
    padding:
        32px 8px 13px;
}


.hidden {
    display:
        none !important;
}


.view-heading {
    margin-bottom:
        27px;

    text-align:
        right;
}


.view-heading h2 {
    margin:
        9px 0 7px;

    font-size:
        28px;

    font-weight:
        500;
}


.view-heading p {
    margin:
        0;

    color:
        var(--muted);

    font-size:
        13px;

    line-height:
        1.8;
}


/* FORM */

.field {
    display:
        block;

    margin-bottom:
        17px;
}


.field > span {
    display:
        block;

    margin:
        0 3px 8px;

    color:
        #c9d0d9;

    font-size:
        12px;

    font-weight:
        600;
}


.field input {
    width:
        100%;

    height:
        53px;

    padding:
        0 16px;

    outline:
        none;

    color:
        #f4f6f8;

    caret-color:
        var(--gold);

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius:
        12px;

    background:
        rgba(1,5,11,.66);

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.018);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.field input::placeholder {
    color:
        #596271;
}


.field input:focus {
    border-color:
        rgba(216,180,93,.55);

    background:
        rgba(2,7,13,.86);

    box-shadow:
        0 0 0 3px
        rgba(216,180,93,.07);
}


.password-wrap {
    position:
        relative;
}


.password-wrap input {
    padding-left:
        72px;
}


.password-toggle {
    position:
        absolute;

    left:
        8px;

    top:
        50%;

    transform:
        translateY(-50%);

    height:
        35px;

    padding:
        0 11px;

    border:
        0;

    border-radius:
        8px;

    color:
        #b6bec8;

    background:
        rgba(255,255,255,.055);

    cursor:
        pointer;
}


.password-toggle:hover {
    color:
        var(--gold-light);
}


.primary-button {
    width:
        100%;

    min-height:
        55px;

    margin-top:
        4px;

    padding:
        0 20px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    border:
        1px solid
        rgba(255,239,194,.42);

    border-radius:
        13px;

    color:
        #171005;

    background:
        linear-gradient(
            135deg,
            #f5df9e,
            #d9b359 55%,
            #a87929
        );

    font-weight:
        750;

    cursor:
        pointer;

    box-shadow:
        0 17px 40px
        rgba(157,113,35,.16);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}


.primary-button:hover:not(:disabled) {
    transform:
        translateY(-2px);

    box-shadow:
        0 21px 48px
        rgba(176,129,40,.23);
}


.primary-button:disabled {
    cursor:
        wait;

    opacity:
        .62;
}


.message {
    margin:
        4px 0 17px;

    padding:
        11px 13px;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius:
        10px;

    font-size:
        12px;

    line-height:
        1.7;
}


.message.error {
    color:
        #ffb4b4;

    border-color:
        rgba(255,112,112,.18);

    background:
        rgba(115,25,25,.16);
}


.message.success {
    color:
        #a6e4c1;

    border-color:
        rgba(100,210,148,.18);

    background:
        rgba(25,100,62,.15);
}


/* OTP */

.otp-icon {
    width:
        55px;

    height:
        55px;

    margin:
        2px auto 20px;

    display:
        grid;

    place-items:
        center;

    border:
        1px solid
        rgba(216,180,93,.26);

    border-radius:
        50%;

    color:
        var(--gold-light);

    background:
        rgba(216,180,93,.08);

    box-shadow:
        0 0 35px
        rgba(216,180,93,.07);

    font-size:
        23px;
}


.otp-heading {
    text-align:
        center;
}


.otp-email {
    display:
        block;

    margin-top:
        9px;

    color:
        #e4c976;

    font-size:
        13px;

    font-weight:
        600;

    overflow-wrap:
        anywhere;
}


.otp-field input {
    height:
        66px;

    text-align:
        center;

    font-size:
        27px;

    font-weight:
        700;

    letter-spacing:
        .34em;
}


.otp-note {
    margin:
        -5px 0 18px;

    color:
        #687383;

    text-align:
        center;

    font-size:
        11px;
}


.text-button {
    width:
        100%;

    margin-top:
        14px;

    padding:
        7px;

    border:
        0;

    color:
        #d7bd76;

    background:
        transparent;

    font-size:
        12px;

    cursor:
        pointer;
}


.text-button:hover {
    color:
        #f0d995;
}


.muted-button {
    margin-top:
        2px;

    color:
        #777f8a;
}


.card-footer {
    padding:
        18px 0 3px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    color:
        #5e6875;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        11px;

    letter-spacing:
        .08em;
}


.footer-dot {
    width:
        3px;

    height:
        3px;

    transform:
        rotate(45deg);

    background:
        #9c7b39;
}


/* FOOTER */

.footer {
    width:
        min(1180px, calc(100% - 40px));

    margin:
        0 auto;
}


.footer-line {
    height:
        1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(216,180,93,.18),
            transparent
        );
}


.footer-content {
    min-height:
        82px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    direction:
        ltr;
}


.footer-brand {
    display:
        inline-flex;

    gap:
        4px;

    color:
        #b99b57;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        14px;
}


.footer-brand em {
    color:
        #dcc273;

    font-style:
        italic;
}


.footer-copy {
    color:
        #59616c;

    font-size:
        10px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .auth-shell {
        width:
            min(680px, calc(100% - 30px));

        grid-template-columns:
            1fr;

        gap:
            42px;

        padding:
            45px 0 65px;
    }


    .hero-logo {
        width:
            min(470px, 94vw);
    }


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

}


@media (max-width: 620px) {

    .topbar,
    .footer {
        width:
            calc(100% - 26px);
    }


    .topbar {
        min-height:
            72px;
    }


    .brand {
        gap:
            9px;
    }


    .brand-logo {
        width:
            87px;

        height:
            40px;
    }


    .brand-wordmark {
        font-size:
            22px;
    }


    .brand-wordmark em {
        font-size:
            23px;
    }


    .auth-shell {
        width:
            calc(100% - 22px);

        padding-top:
            35px;
    }


    .identity-copy h1 {
        font-size:
            39px;
    }


    .identity-copy p {
        font-size:
            14px;
    }


    .auth-card {
        padding:
            14px;

        border-radius:
            21px;
    }


    .auth-view {
        padding:
            27px 4px 10px;
    }


    .view-heading h2 {
        font-size:
            25px;
    }


    .footer-content {
        min-height:
            90px;
    }

}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition-duration:
            .001ms !important;

        animation-duration:
            .001ms !important;
    }

}


/* ============================================================
   ALBARON_SHARED_PREMIUM_HEADER_LOGIN_V1_START
   Shared identity with app.albaron.net
   ============================================================ */

.topbar {
    display:
        grid;

    grid-template-columns:
        minmax(175px, 1fr)
        auto
        minmax(175px, 1fr);

    align-items:
        center;

    column-gap:
        18px;
}

.topbar > .brand {
    justify-self:
        start;
}

.topbar > .topbar-line {
    justify-self:
        stretch;

    width:
        100%;

    max-width:
        230px;

    margin-inline-start:
        auto;
}


/*
 * Shared AlBaron title.
 */
.albaron-platform-title {
    position:
        relative;

    justify-self:
        center;

    display:
        inline-flex;

    align-items:
        baseline;

    justify-content:
        center;

    gap:
        .34em;

    direction:
        rtl;

    white-space:
        nowrap;

    padding:
        5px 18px
        10px;

    font-family:
        "Segoe UI",
        "Noto Kufi Arabic",
        "Noto Sans Arabic",
        Tahoma,
        Arial,
        sans-serif;

    font-size:
        clamp(
            16px,
            1.55vw,
            23px
        );

    font-weight:
        750;

    line-height:
        1.3;

    letter-spacing:
        0;

    text-align:
        center;

    filter:
        drop-shadow(
            0 7px 18px
            rgba(0, 0, 0, .28)
        );
}

.albaron-platform-prefix {
    color:
        #f4f7ff;
}

.albaron-platform-suffix {
    color:
        #a8c7ff;

    text-shadow:
        0 0 14px
        rgba(110, 165, 255, .16);
}

.albaron-platform-brand {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        1.08em;

    font-weight:
        700;

    font-style:
        italic;

    background:
        linear-gradient(
            105deg,
            #fff1bd 0%,
            #dfbd69 27%,
            #f7df99 45%,
            #8fbaff 62%,
            #f4d37f 78%,
            #fff1bd 100%
        );

    background-size:
        240% auto;

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;

    -webkit-text-fill-color:
        transparent;

    animation:
        albaronLoginBrandShimmer
        7s
        ease-in-out
        infinite;
}

.albaron-platform-title::after {
    content:
        "";

    position:
        absolute;

    left:
        50%;

    bottom:
        1px;

    width:
        68%;

    height:
        1px;

    transform:
        translateX(-50%);

    border-radius:
        999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(226, 188, 98, .32),
            rgba(113, 168, 255, .42),
            rgba(226, 188, 98, .32),
            transparent
        );

    box-shadow:
        0 0 12px
        rgba(113, 168, 255, .12);

    animation:
        albaronLoginHeaderGlow
        4.8s
        ease-in-out
        infinite;
}

@keyframes albaronLoginBrandShimmer {

    0%,
    100% {
        background-position:
            0% 50%;
    }

    50% {
        background-position:
            100% 50%;
    }
}

@keyframes albaronLoginHeaderGlow {

    0%,
    100% {
        opacity:
            .42;

        width:
            58%;
    }

    50% {
        opacity:
            .92;

        width:
            76%;
    }
}


/*
 * Tablet.
 */
@media (max-width: 900px) {

    .topbar {
        grid-template-columns:
            minmax(145px, 1fr)
            auto
            minmax(145px, 1fr);

        column-gap:
            10px;
    }

    .albaron-platform-title {
        font-size:
            14.5px;

        padding-inline:
            10px;
    }
}


/*
 * Mobile:
 * logo row one,
 * title centered on row two,
 * decorative line hidden.
 */
@media (max-width: 620px) {

    .topbar {
        grid-template-columns:
            1fr;

        grid-template-rows:
            auto
            auto;

        row-gap:
            5px;

        padding-top:
            8px;

        padding-bottom:
            8px;
    }

    .topbar > .brand {
        grid-column:
            1;

        grid-row:
            1;

        justify-self:
            center;
    }

    .albaron-platform-title-login {
        grid-column:
            1;

        grid-row:
            2;

        width:
            100%;

        padding:
            1px 4px
            7px;

        font-size:
            clamp(
                13px,
                3.8vw,
                16px
            );

        white-space:
            normal;

        flex-wrap:
            wrap;
    }

    .topbar > .topbar-line {
        display:
            none;
    }
}


@media (prefers-reduced-motion: reduce) {

    .albaron-platform-brand,
    .albaron-platform-title::after {
        animation:
            none !important;
    }
}

/* ============================================================
   ALBARON_SHARED_PREMIUM_HEADER_LOGIN_V1_END
   ============================================================ */
