/* -----------------------------
   BB COLOR PALETTE
----------------------------- */

:root {
    --bb-bg: #00081B;

    --bb-surface: #071426;
    --bb-surface-soft: #0B1A2E;
    --bb-input: #020D21;

    --bb-blue-primary: #258AD2;
    --bb-blue-secondary: #449EDA;
    --bb-blue-light: #67B5E8;
    --bb-blue-deep: #1F6FA8;

    --bb-text-primary: #F5F5F5;
    --bb-text-secondary: #C9D1D9;
    --bb-text-muted: #8B9AAE;

    --bb-border: #17304D;
    --bb-border-soft: #10233A;

    --bb-success: #2EA043;
    --bb-danger: #F85149;
    --bb-warning: #D29922;
}


/* -----------------------------
   GLOBAL
----------------------------- */

* {
    box-sizing: border-box;
}


html {
    width: 100%;
    min-height: 100%;

    background: var(--bb-bg);
}


body {
    width: 100%;
    min-height: 100%;

    margin: 0;

    font-family:
        Arial,
        sans-serif;

    background: var(--bb-bg);

    color: var(--bb-text-primary);
}


/* -----------------------------
   LOGIN / SIGNUP PAGE
----------------------------- */

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    background: var(--bb-bg);
}


/* -----------------------------
   COMPANY BANNER
----------------------------- */

.company-banner {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-shrink: 0;

    padding: 10px 20px;

    background: var(--bb-bg);

    border-bottom:
        1px solid var(--bb-border);
}


/* -----------------------------
   BRAND LOGO
----------------------------- */

.brand-logo {
    display: flex;
    align-items: center;

    width: min(340px, 75vw);
    height: 82px;

    transform: translateX(40px);
}


/* -----------------------------
   BRAND - LARGE B
----------------------------- */

.brand-b {
    width: 76px;
    height: 72px;

    flex-shrink: 0;

    background:
        var(--bb-blue-primary);

    -webkit-mask-image:
        url("/static/assets/art/brand/B.png");

    mask-image:
        url("/static/assets/art/brand/B.png");

    -webkit-mask-repeat:
        no-repeat;

    mask-repeat:
        no-repeat;

    -webkit-mask-position:
        center;

    mask-position:
        center;

    -webkit-mask-size:
        contain;

    mask-size:
        contain;
}


/* -----------------------------
   BRAND TEXT CONTAINER
----------------------------- */

.brand-text {
    flex: 1;

    height: 100%;

    display: flex;
    flex-direction: column;

    justify-content: center;

    margin-left: 10px;
}


/* -----------------------------
   BORAN
----------------------------- */

.brand-boran {
    width: 76%;
    height: 24px;

    background:
        var(--bb-text-primary);

    -webkit-mask-image:
        url("/static/assets/art/brand/BORAN.png");

    mask-image:
        url("/static/assets/art/brand/BORAN.png");

    -webkit-mask-repeat:
        no-repeat;

    mask-repeat:
        no-repeat;

    -webkit-mask-position:
        left center;

    mask-position:
        left center;

    -webkit-mask-size:
        contain;

    mask-size:
        contain;

    transform:
        scaleY(0.92);

    transform-origin:
        center;
}


/* -----------------------------
   BROTHERS
----------------------------- */

.brand-brothers {
    width: 58%;
    height: 12px;

    margin-top: 10px;

    background:
        var(--bb-blue-secondary);

    -webkit-mask-image:
        url("/static/assets/art/brand/BROTHERS.png");

    mask-image:
        url("/static/assets/art/brand/BROTHERS.png");

    -webkit-mask-repeat:
        no-repeat;

    mask-repeat:
        no-repeat;

    -webkit-mask-position:
        left center;

    mask-position:
        left center;

    -webkit-mask-size:
        contain;

    mask-size:
        contain;
}


/* -----------------------------
   PAGE POSITIONING
----------------------------- */

.auth-main {
    position: relative;

    flex: 1;

    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    padding:
        55px
        20px
        40px;

    overflow: hidden;

    isolation: isolate;
}


/* -----------------------------
   PROCEDURAL BACKGROUND SVG
----------------------------- */

.bb-background-art {
    position: absolute;

    inset: 0;

    z-index: -1;

    width: 100%;
    height: 100%;

    pointer-events: none;

    overflow: visible;
}


.bb-generated-line {
    fill: none;

    stroke: #449EDA;

    stroke-width: 1.1;

    stroke-linecap: round;
    stroke-linejoin: round;

    opacity: 0;
}


/* -----------------------------
   AUTH CARD
----------------------------- */

.auth-card {
    position: relative;

    z-index: 1;

    width: 100%;
    max-width: 410px;

    padding: 36px;

    overflow: hidden;

    background:
        var(--bb-surface);

    border:
        1px solid var(--bb-border);

    border-radius: 14px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.32),
        0 0 30px rgba(37, 138, 210, 0.04);
}


.auth-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--bb-blue-primary),
            var(--bb-blue-secondary),
            transparent
        );
}


/* -----------------------------
   AUTH HEADING
----------------------------- */

.auth-heading {
    margin-bottom: 30px;

    text-align: center;
}


.auth-heading h2 {
    margin:
        0
        0
        8px
        0;

    color:
        var(--bb-text-primary);

    font-size: 28px;
    font-weight: 600;

    letter-spacing: 0.3px;
}


.auth-subtitle {
    margin: 0;

    color:
        var(--bb-text-muted);

    font-size: 14px;
}


/* -----------------------------
   INPUTS
----------------------------- */

.input-group {
    margin-bottom: 20px;
}


.input-group label {
    display: block;

    margin-bottom: 8px;

    color:
        var(--bb-text-secondary);

    font-size: 13px;
    font-weight: 600;
}


.input-group input {
    width: 100%;
    min-height: 46px;

    padding:
        13px
        14px;

    background:
        var(--bb-input);

    color:
        var(--bb-text-primary);

    border:
        1px solid var(--bb-border-soft);

    border-radius: 8px;

    font-family: inherit;
    font-size: 16px;

    outline: none;

    caret-color:
        var(--bb-text-primary);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.input-group input::placeholder {
    color:
        var(--bb-text-muted);

    opacity: 0.65;
}


.input-group input:hover {
    border-color:
        var(--bb-border);
}


.input-group input:focus {
    background:
        #031027;

    border-color:
        var(--bb-blue-primary);

    box-shadow:
        0 0 0 3px
        rgba(
            37,
            138,
            210,
            0.12
        );
}


/* -----------------------------
   BROWSER AUTOFILL FIX
----------------------------- */

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
    -webkit-text-fill-color:
        var(--bb-text-primary);

    -webkit-box-shadow:
        0 0 0 1000px
        var(--bb-input)
        inset;

    box-shadow:
        0 0 0 1000px
        var(--bb-input)
        inset;

    caret-color:
        var(--bb-text-primary);

    transition:
        background-color
        9999s
        ease-in-out
        0s;
}


/* -----------------------------
   PRIMARY BUTTON
----------------------------- */

.primary-button {
    width: 100%;
    min-height: 46px;

    margin-top: 4px;

    padding: 13px;

    background:
        var(--bb-blue-primary);

    color:
        var(--bb-text-primary);

    border:
        1px solid
        var(--bb-blue-primary);

    border-radius: 8px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    letter-spacing: 0.2px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}


.primary-button:hover {
    background:
        var(--bb-blue-secondary);

    border-color:
        var(--bb-blue-secondary);

    box-shadow:
        0 6px 20px
        rgba(
            37,
            138,
            210,
            0.20
        );
}


.primary-button:active {
    transform:
        translateY(1px);
}


/* -----------------------------
   AUTH MESSAGES
----------------------------- */

.auth-messages {
    margin-top: 12px;
}


.auth-message {
    margin: 0;

    text-align: center;

    font-size: 13px;
    line-height: 1.4;
}


.auth-message.error {
    color: #FF8D87;
}


.auth-message.success {
    color: #78D98B;
}


.auth-message.warning {
    color: #E7C66D;
}


/* -----------------------------
   DIVIDER
----------------------------- */

.auth-divider {
    width: 100%;
    height: 1px;

    margin-top: 28px;
    margin-bottom: 22px;

    background:
        var(--bb-border-soft);
}


/* -----------------------------
   AUTH FOOTER
----------------------------- */

.auth-footer {
    margin: 0;

    text-align: center;

    color:
        var(--bb-text-muted);

    font-size: 13px;
    line-height: 1.5;
}


.auth-footer a {
    margin-left: 3px;

    color:
        var(--bb-blue-secondary);

    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


.auth-footer a:hover {
    color:
        var(--bb-blue-light);
}


/* =========================================================
   TABLET / SMALLER SCREENS
   ========================================================= */

@media (max-width: 768px) {

    .company-banner {
        padding:
            8px
            16px;
    }


    .auth-main {
        padding:
            38px
            16px
            32px;
    }


    .auth-card {
        max-width: 400px;

        padding:
            32px
            28px;
    }


    .auth-heading {
        margin-bottom: 26px;
    }


    .auth-heading h2 {
        font-size: 27px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .company-banner {
        padding:
            6px
            12px;
    }


    /*
       Same optical logo placement,
       but reduced proportionally so it
       doesn't get cramped on narrow phones.
    */

    .brand-logo {
        width: min(300px, 82vw);
        height: 72px;

        transform:
            translateX(32px);
    }


    .brand-b {
        width: 66px;
        height: 63px;
    }


    .brand-text {
        margin-left: 8px;
    }


    .brand-boran {
        height: 21px;
    }


    .brand-brothers {
        height: 11px;

        margin-top: 8px;
    }


    .auth-main {
        padding:
            30px
            14px
            28px;
    }


    .auth-card {
        max-width: none;

        padding:
            28px
            22px;

        border-radius: 12px;
    }


    .auth-heading {
        margin-bottom: 25px;
    }


    .auth-heading h2 {
        font-size: 26px;
    }


    .auth-subtitle {
        font-size: 13px;
    }


    .input-group {
        margin-bottom: 18px;
    }


    .input-group label {
        font-size: 13px;
    }


    .input-group input {
        min-height: 48px;

        padding:
            13px
            14px;

        /*
           Keeping this at 16px is important
           on mobile browsers such as iOS
           Safari so focusing the field does
           not automatically zoom the page.
        */
        font-size: 16px;
    }


    .primary-button {
        min-height: 48px;

        font-size: 15px;
    }


    .auth-divider {
        margin-top: 25px;
        margin-bottom: 20px;
    }


    .auth-footer {
        font-size: 13px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .brand-logo {
        width: 280px;
        max-width: 86vw;

        transform:
            translateX(27px);
    }


    .brand-b {
        width: 60px;
        height: 58px;
    }


    .brand-boran {
        height: 19px;
    }


    .brand-brothers {
        height: 10px;

        margin-top: 7px;
    }


    .auth-main {
        padding:
            24px
            12px
            24px;
    }


    .auth-card {
        padding:
            25px
            18px;
    }


    .auth-heading h2 {
        font-size: 24px;
    }
}


/* =========================================================
   SHORT MOBILE SCREENS / LANDSCAPE
   ========================================================= */

@media (max-height: 650px) and (max-width: 768px) {

    .auth-main {
        padding-top: 22px;
        padding-bottom: 24px;
    }


    .auth-card {
        padding-top: 25px;
        padding-bottom: 25px;
    }


    .auth-heading {
        margin-bottom: 22px;
    }


    .input-group {
        margin-bottom: 16px;
    }


    .auth-divider {
        margin-top: 22px;
        margin-bottom: 18px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }

}