/* =========================================================
   BELVARIS
   Global Design System
   ========================================================= */

:root {
    --bv-navy: #0f1b2d;
    --bv-navy-2: #142a4a;
    --bv-blue: #1a56db;
    --bv-blue-light: #4a7ff0;
    --bv-blue-soft: #eef4ff;

    --bv-emerald: #00c853;
    --bv-emerald-soft: #eafaf1;

    --bv-white: #ffffff;
    --bv-background: #f7f9fc;
    --bv-text: #101828;
    --bv-text-secondary: #667085;
    --bv-text-muted: #98a2b3;

    --bv-border: #e4e7ec;
    --bv-border-light: #edf0f4;

    --bv-danger: #e5484d;
    --bv-danger-soft: #fff1f1;

    --bv-radius-sm: 10px;
    --bv-radius-md: 14px;
    --bv-radius-lg: 22px;
    --bv-radius-xl: 28px;

    --bv-shadow-card:
        0 18px 50px rgba(15, 27, 45, 0.08);

    --bv-shadow-button:
        0 10px 24px rgba(26, 86, 219, 0.20);

    --bv-ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;

    color: var(--bv-text);
    background: var(--bv-background);

    font-family:
        "Inter",
        Arial,
        Helvetica,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
}


/* =========================================================
   LOGIN LAYOUT
   ========================================================= */

.bv-login-page {
    display: grid;
    grid-template-columns: 52% 48%;

    width: 100%;
    min-height: 100vh;

    overflow: hidden;

    background: var(--bv-white);
}


/* =========================================================
   LEFT BRAND PANEL
   ========================================================= */

.bv-login-brand {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 100vh;

    padding: 38px clamp(38px, 6vw, 90px);

    color: var(--bv-white);

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #071426 0%,
            #0d1d35 48%,
            #102f69 100%
        );
}


/* Large subtle fluid shape */

.bv-login-brand::before {
    content: "";

    position: absolute;

    width: 620px;
    height: 620px;

    top: -170px;
    right: -240px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(55, 116, 245, 0.42),
            rgba(55, 116, 245, 0.08) 58%,
            transparent 72%
        );
}


/* Subtle wave lines */

.bv-login-brand::after {
    content: "";

    position: absolute;

    width: 720px;
    height: 300px;

    left: -190px;
    bottom: -50px;

    border: 1px solid rgba(80, 145, 255, 0.18);

    border-radius: 50%;

    transform: rotate(-18deg);

    box-shadow:
        0 0 0 28px rgba(80, 145, 255, 0.035),
        0 0 0 56px rgba(80, 145, 255, 0.02);
}


/* =========================================================
   LOGO
   ========================================================= */

.bv-logo {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 11px;

    width: fit-content;

    color: #ffffff;

    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.055em;
}

.bv-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    color: #ffffff;

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            #2774f5,
            #1749bb
        );

    box-shadow:
        0 8px 22px rgba(15, 77, 220, 0.28);
}

.bv-logo-mark span {
    font-size: 1.15rem;
    font-weight: 800;
}


/* =========================================================
   BRAND CONTENT
   ========================================================= */

.bv-brand-content {
    position: relative;
    z-index: 2;

    width: min(100%, 570px);

    margin: auto 0;

    padding: 35px 0;
}

.bv-brand-content .eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 17px;

    color: #78a8ff;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.bv-brand-content h1 {
    margin: 0;

    font-size: clamp(2.9rem, 4.6vw, 4.5rem);
    font-weight: 750;
    line-height: 1.02;

    letter-spacing: -0.045em;
}

.bv-brand-content h1 span {
    color: #4c8cff;
}

.bv-brand-content p {
    max-width: 490px;

    margin: 22px 0 0;

    color: rgba(255, 255, 255, 0.66);

    font-size: 0.92rem;
    line-height: 1.7;
}


/* =========================================================
   TRUST ITEMS
   ========================================================= */

.bv-trust-list {
    display: grid;
    gap: 14px;

    margin-top: 35px;
}

.bv-trust-item {
    display: flex;
    align-items: center;
    gap: 13px;
}

.bv-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    color: #86adff;

    background: rgba(255, 255, 255, 0.055);

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 11px;
}

.bv-trust-icon svg {
    width: 18px;
    height: 18px;
}

.bv-trust-item strong {
    display: block;

    margin-bottom: 2px;

    color: #ffffff;

    font-size: 0.78rem;
    font-weight: 700;
}

.bv-trust-item span {
    color: rgba(255, 255, 255, 0.48);

    font-size: 0.68rem;
    line-height: 1.4;
}


/* =========================================================
   LOGIN SIDE
   ========================================================= */

.bv-login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;

    padding: 35px clamp(30px, 5vw, 80px);

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(26, 86, 219, 0.045),
            transparent 42%
        ),
        var(--bv-background);
}

.bv-login-card {
    width: min(100%, 460px);

    padding: 38px 40px;

    background: #ffffff;

    border: 1px solid var(--bv-border-light);

    border-radius:
        24px
        28px
        22px
        30px;

    box-shadow: var(--bv-shadow-card);
}

.bv-mobile-logo {
    display: none;
}


/* =========================================================
   LOGIN HEADING
   ========================================================= */

.bv-login-heading {
    margin-bottom: 28px;
}

.bv-login-heading h2 {
    margin: 0 0 7px;

    color: var(--bv-navy);

    font-size: 1.85rem;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.bv-login-heading p {
    margin: 0;

    color: var(--bv-text-secondary);

    font-size: 0.8rem;
}


/* =========================================================
   ALERT
   ========================================================= */

.bv-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-bottom: 18px;
    padding: 11px 13px;

    color: var(--bv-danger);

    background: var(--bv-danger-soft);

    border: 1px solid rgba(229, 72, 77, 0.12);

    border-radius: 11px;

    font-size: 0.72rem;
}


/* =========================================================
   FORM
   ========================================================= */

.bv-form-group {
    margin-bottom: 17px;
}

.bv-form-label {
    display: block;

    margin-bottom: 7px;

    color: var(--bv-navy);

    font-size: 0.73rem;
    font-weight: 700;
}

.bv-input-wrap {
    position: relative;
}

.bv-input {
    width: 100%;
    height: 51px;

    padding: 0 44px 0 44px;

    color: var(--bv-text);

    background: #ffffff;

    border: 1px solid #dfe4eb;

    border-radius: 12px;

    outline: none;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.bv-input::placeholder {
    color: #a2aab5;
}

.bv-input:hover {
    border-color: #c8d0da;
}

.bv-input:focus {
    border-color: var(--bv-blue);

    box-shadow:
        0 0 0 3px rgba(26, 86, 219, 0.09);
}

.bv-input-icon {
    position: absolute;

    left: 15px;
    top: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    color: #8995a6;

    transform: translateY(-50%);

    pointer-events: none;
}

.bv-input-icon svg {
    width: 18px;
    height: 18px;
}

.bv-password-toggle {
    position: absolute;

    right: 11px;
    top: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    color: #8995a6;

    background: transparent;

    border-radius: 8px;

    cursor: pointer;

    transform: translateY(-50%);
}

.bv-password-toggle:hover {
    color: var(--bv-blue);

    background: var(--bv-blue-soft);
}

.bv-password-toggle svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   OPTIONS
   ========================================================= */

.bv-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 2px 0 19px;
}

.bv-checkbox {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--bv-text-secondary);

    font-size: 0.72rem;

    cursor: pointer;
}

.bv-checkbox input {
    width: 15px;
    height: 15px;

    margin: 0;

    accent-color: var(--bv-blue);
}

.bv-forgot {
    color: var(--bv-blue);

    font-size: 0.72rem;
    font-weight: 700;
}

.bv-forgot:hover {
    text-decoration: underline;
}


/* =========================================================
   SECURITY VERIFICATION
   ========================================================= */

.bv-security {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 62px;

    margin-bottom: 18px;
    padding: 11px 13px;

    background: #fbfcfe;

    border: 1px solid var(--bv-border);

    border-radius: 12px;

    transition:
        background 300ms ease,
        border-color 300ms ease;
}

.bv-security.is-verified {
    background: var(--bv-emerald-soft);

    border-color: rgba(0, 200, 83, 0.18);
}

.bv-security-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bv-security-check {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    color: transparent;

    background: #ffffff;

    border: 2px solid #cbd2dc;

    border-radius: 7px;

    transition:
        all 300ms var(--bv-ease);
}

.bv-security-check.is-verified {
    color: #ffffff;

    background: var(--bv-emerald);

    border-color: var(--bv-emerald);
}

.bv-security-check svg {
    width: 15px;
    height: 15px;
}

.bv-security-title {
    margin-bottom: 2px;

    color: var(--bv-navy);

    font-size: 0.72rem;
    font-weight: 700;
}

.bv-security-status {
    color: var(--bv-text-muted);

    font-size: 0.64rem;
}

.bv-security-brand {
    color: #a0a8b4;

    font-size: 0.6rem;
    font-weight: 700;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.bv-login-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 52px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #164dc8
        );

    border-radius: 12px;

    box-shadow: var(--bv-shadow-button);

    font-size: 0.77rem;
    font-weight: 700;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 180ms var(--bv-ease),
        box-shadow 180ms var(--bv-ease);
}

.bv-login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 28px rgba(26, 86, 219, 0.26);
}

.bv-login-button:active {
    transform: translateY(0);
}

.bv-login-button svg {
    position: absolute;

    right: 16px;

    width: 17px;
    height: 17px;
}

.bv-login-button span {
    display: inline-flex;
}


/* =========================================================
   REGISTER
   ========================================================= */

.bv-register {
    margin-top: 19px;

    color: var(--bv-text-secondary);

    text-align: center;

    font-size: 0.72rem;
}

.bv-register a {
    color: var(--bv-blue);

    font-weight: 700;
}

.bv-login-footer {
    margin-top: 23px;

    color: var(--bv-text-muted);

    text-align: center;

    font-size: 0.62rem;
}


/* =========================================================
   LOADING SCREEN
   ========================================================= */

.bv-loading-screen {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #071426,
            #0f1b2d 55%,
            #102f69
        );

    transition: opacity 300ms ease;

    overflow: hidden;
}

.bv-loading-screen::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    right: -250px;
    top: -200px;

    border: 1px solid rgba(75, 137, 255, 0.18);

    border-radius: 50%;

    box-shadow:
        0 0 0 35px rgba(75, 137, 255, 0.03),
        0 0 0 70px rgba(75, 137, 255, 0.02);

    animation:
        bv-orbit 7s linear infinite;
}

@keyframes bv-orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.bv-loader {
    position: relative;
    z-index: 2;

    color: #ffffff;

    text-align: center;
}

.bv-loader-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    margin: 0 auto 18px;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #2877ff,
            #1649ba
        );

    box-shadow:
        0 14px 35px rgba(0, 74, 220, 0.30);

    font-size: 1.2rem;
    font-weight: 800;

    animation:
        bv-pulse 1.8s ease-in-out infinite;
}

@keyframes bv-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.bv-loader-logo {
    margin-bottom: 20px;

    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.bv-loader-title {
    margin-bottom: 6px;

    font-size: 0.9rem;
    font-weight: 700;
}

.bv-loader-message {
    margin: 0;

    color: rgba(255, 255, 255, 0.55);

    font-size: 0.7rem;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .bv-login-page {
        grid-template-columns: 48% 52%;
    }

    .bv-login-brand {
        padding-left: 38px;
        padding-right: 38px;
    }

    .bv-brand-content h1 {
        font-size: clamp(2.6rem, 4vw, 3.7rem);
    }

    .bv-login-card {
        padding: 34px;
    }
}


@media (max-width: 850px) {

    .bv-login-page {
        display: block;

        min-height: 100vh;

        overflow: visible;
    }

    .bv-login-brand {
        display: none;
    }

    .bv-login-form-side {
        min-height: 100vh;

        padding: 30px 18px;
    }

    .bv-mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;

        margin-bottom: 22px;

        color: var(--bv-navy);

        font-size: 1rem;
        font-weight: 800;
        letter-spacing: 0.055em;
    }

    .bv-login-card {
        padding: 34px 28px;
    }
}


@media (max-width: 480px) {

    .bv-login-form-side {
        padding: 18px 12px;
    }

    .bv-login-card {
        padding: 28px 20px;

        border-radius: 20px;
    }

    .bv-login-heading h2 {
        font-size: 1.65rem;
    }

    .bv-form-options {
        gap: 12px;
    }

    .bv-security-brand {
        display: none;
    }
}