/* =========================================================
   STOCKFLOW — LOGIN.CSS (BLUE PALETTE)
   File: public/assets/css/login.css
   ========================================================= */

:root {
    --sf-login-primary: #2563EB;
    --sf-login-primary-dark: #1D4ED8;
    --sf-login-sky: #60A5FA;
    --sf-login-ink: #12233C;
    --sf-login-muted: #73849A;
    --sf-login-border: #E1EAF4;
    --sf-login-bg: #F6F9FE;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.sf-login-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--sf-login-ink);
    background: var(--sf-login-bg);
    font-family: "DM Sans", sans-serif;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

a {
    text-decoration: none;
}

/* =========================================================
   MAIN GRID
   ========================================================= */

.sf-login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(450px, 1.14fr) minmax(400px, 0.86fr);
}

/* =========================================================
   LEFT BANNER
   ========================================================= */

.sf-login-banner {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 34px 52px 28px;
    color: #F8FBFF;
    background:
        radial-gradient(circle at 14% 80%, rgba(96, 165, 250, 0.30), transparent 24%),
        radial-gradient(circle at 90% 22%, rgba(37, 99, 235, 0.42), transparent 30%),
        linear-gradient(145deg, #071B39 0%, #0A2A5B 48%, #123F7A 100%);
}

.sf-login-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.72;
    background-image:
        linear-gradient(rgba(147, 197, 253, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 197, 253, 0.055) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 86%);
}

.sf-login-banner::after {
    content: "";
    width: 560px;
    height: 560px;
    position: absolute;
    right: -240px;
    bottom: -270px;
    z-index: -1;
    border: 90px solid rgba(147, 197, 253, 0.07);
    border-radius: 50%;
}

.sf-login-banner__noise {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
    background-image: radial-gradient(rgba(255, 255, 255, 0.95) 0.5px, transparent 0.5px);
    background-size: 4px 4px;
    mix-blend-mode: soft-light;
}

.sf-login-banner__glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(16px);
    pointer-events: none;
}

.sf-login-banner__glow--one {
    width: 260px;
    height: 260px;
    top: 23%;
    left: -130px;
    background: rgba(96, 165, 250, 0.24);
}

.sf-login-banner__glow--two {
    width: 220px;
    height: 220px;
    top: 5%;
    right: -100px;
    background: rgba(37, 99, 235, 0.35);
}

.sf-login-brand {
    width: max-content;
    color: #FFFFFF;
}

.sf-login-brand__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #FFFFFF;
    background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    box-shadow: 0 10px 25px rgba(3, 12, 28, 0.22);
    font-size: 18px;
}

.sf-login-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.sf-login-brand__text strong {
    color: #F7FBFF;
    font-family: Manrope, sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.sf-login-brand__text strong span {
    color: #93C5FD;
}

.sf-login-brand__text small {
    margin-top: 4px;
    color: #B8CFEA;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.85px;
    text-transform: uppercase;
}

.sf-login-banner__content {
    width: min(560px, 100%);
    margin: auto 0 105px;
}

.sf-login-pill {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    padding: 7px 10px;
    color: #D8EBFF;
    background: rgba(191, 219, 254, 0.10);
    border: 1px solid rgba(147, 197, 253, 0.25);
    border-radius: 99px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.75px;
}

.sf-login-pill i {
    color: #93C5FD;
    font-size: 10px;
}

.sf-login-banner__content h1 {
    max-width: 560px;
    margin: 0 0 16px;
    color: #FFFFFF;
    font-family: Manrope, sans-serif;
    font-size: clamp(34px, 3.15vw, 52px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -1.7px;
}

.sf-login-banner__content > p {
    max-width: 540px;
    margin: 0;
    color: #C3D8F1;
    font-size: 15px;
    line-height: 1.75;
}

.sf-login-feature-list {
    display: grid;
    gap: 13px;
    margin-top: 34px;
}

.sf-login-feature-list > div {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.sf-login-feature-list > div > span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    margin-top: 1px;
    color: #B9DBFF;
    background: rgba(96, 165, 250, 0.16);
    border: 1px solid rgba(147, 197, 253, 0.18);
    border-radius: 8px;
    font-size: 11px;
}

.sf-login-feature-list p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sf-login-feature-list strong {
    color: #F0F7FF;
    font-size: 12px;
    font-weight: 700;
}

.sf-login-feature-list small {
    color: #AFC7E2;
    font-size: 11px;
}

/* Floating Card */
.sf-login-floating-card {
    width: 276px;
    position: absolute;
    right: 8%;
    bottom: 42px;
    padding: 17px;
    color: #EAF4FF;
    background: linear-gradient(145deg, rgba(23, 65, 121, 0.72), rgba(14, 45, 91, 0.82));
    border: 1px solid rgba(147, 197, 253, 0.26);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(3, 16, 36, 0.26);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sf-login-floating-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    color: #BBD4EF;
    font-size: 10px;
    font-weight: 600;
}

.sf-login-live-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #DCEEFF;
    font-size: 9px;
    font-weight: 700;
}

.sf-login-live-status i {
    color: #60A5FA;
    font-size: 6px;
}

.sf-login-floating-card__amount {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 17px;
}

.sf-login-floating-card__amount span {
    color: #AFC9E7;
    font-size: 10px;
}

.sf-login-floating-card__amount strong {
    color: #FFFFFF;
    font-family: Manrope, sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.65px;
}

.sf-login-floating-card__chart {
    height: 39px;
    display: flex;
    align-items: end;
    gap: 5px;
    margin: 15px 0 10px;
}

.sf-login-floating-card__chart span {
    width: 100%;
    display: block;
    background: linear-gradient(to top, #2563EB, #8EC5FF);
    border-radius: 4px 4px 2px 2px;
}

.sf-login-floating-card__chart span:nth-child(1) { height: 40%; opacity: 0.70; }
.sf-login-floating-card__chart span:nth-child(2) { height: 62%; opacity: 0.78; }
.sf-login-floating-card__chart span:nth-child(3) { height: 48%; opacity: 0.72; }
.sf-login-floating-card__chart span:nth-child(4) { height: 82%; opacity: 0.91; }
.sf-login-floating-card__chart span:nth-child(5) { height: 58%; opacity: 0.76; }
.sf-login-floating-card__chart span:nth-child(6) { height: 73%; opacity: 0.85; }
.sf-login-floating-card__chart span:nth-child(7) { height: 100%; }

.sf-login-floating-card > small {
    color: #BDD4EE;
    font-size: 9px;
}

.sf-login-floating-card > small i {
    margin-right: 4px;
    color: #93C5FD;
}

.sf-login-banner__footer {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #9AB5D4;
    font-size: 10px;
}

/* =========================================================
   RIGHT LOGIN PANEL
   ========================================================= */

.sf-login-form-side {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 68px 30px 54px;
    background:
        radial-gradient(circle at 100% 0%, rgba(219, 234, 254, 0.72), transparent 35%),
        #FFFFFF;
}

.sf-login-form-side::before {
    content: "";
    width: 250px;
    height: 250px;
    position: absolute;
    top: -145px;
    right: -80px;
    border: 48px solid rgba(37, 99, 235, 0.035);
    border-radius: 50%;
    pointer-events: none;
}

.sf-login-mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 35px;
}

.sf-login-mobile-brand .sf-login-brand__icon {
    width: 39px;
    height: 39px;
    font-size: 16px;
}

.sf-login-mobile-brand .sf-login-brand__text strong {
    color: #1D3557;
    font-size: 18px;
}

.sf-login-mobile-brand .sf-login-brand__text strong span {
    color: var(--sf-login-primary);
}

.sf-login-mobile-brand .sf-login-brand__text small {
    color: #8294AB;
}

.sf-login-form-wrapper {
    width: min(420px, 100%);
    position: relative;
}

.sf-login-heading {
    margin-bottom: 31px;
}

.sf-login-heading__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--sf-login-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.sf-login-heading h2 {
    margin: 0 0 10px;
    color: #142A49;
    font-family: Manrope, sans-serif;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -0.9px;
}

.sf-login-heading p {
    margin: 0;
    color: var(--sf-login-muted);
    font-size: 13px;
    line-height: 1.6;
}

.sf-login-form {
    display: grid;
    gap: 20px;
}

.sf-login-field {
    display: grid;
    gap: 8px;
}

.sf-login-field label {
    color: #38516F;
    font-size: 11px;
    font-weight: 700;
}

.sf-login-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sf-login-field__label-row a {
    color: var(--sf-login-primary);
    font-size: 10px;
    font-weight: 700;
}

.sf-login-field__label-row a:hover {
    color: var(--sf-login-primary-dark);
    text-decoration: underline;
}

.sf-login-input-wrap {
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    color: #8CA0B8;
    background: #FFFFFF;
    border: 1px solid var(--sf-login-border);
    border-radius: 11px;
    transition: 0.18s ease;
}

.sf-login-input-wrap:focus-within {
    color: var(--sf-login-primary);
    border-color: #96C3FF;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.sf-login-input-wrap > i {
    width: 45px;
    flex: 0 0 45px;
    text-align: center;
    font-size: 14px;
}

.sf-login-input-wrap .form-control {
    height: 100%;
    min-width: 0;
    flex: 1;
    padding: 0 13px 0 0;
    color: #263B5A;
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: 0;
    font-size: 12px;
    font-weight: 600;
}

.sf-login-input-wrap .form-control::placeholder {
    color: #A2B2C5;
    font-weight: 400;
}

.sf-password-toggle {
    width: 45px;
    height: 100%;
    display: grid;
    place-items: center;
    flex: 0 0 45px;
    color: #88A0BC;
    background: transparent;
    cursor: pointer;
    transition: 0.18s ease;
}

.sf-password-toggle:hover {
    color: var(--sf-login-primary);
}

.sf-login-options {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -2px;
    color: #8293AA;
    font-size: 10px;
}

.sf-remember-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #5E748F;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.sf-remember-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.sf-remember-checkbox span {
    width: 16px;
    height: 16px;
    position: relative;
    display: inline-block;
    background: #FFFFFF;
    border: 1px solid #C9D7E7;
    border-radius: 5px;
    transition: 0.18s ease;
}

.sf-remember-checkbox input:checked + span {
    background: var(--sf-login-primary);
    border-color: var(--sf-login-primary);
}

.sf-remember-checkbox input:checked + span::after {
    content: "\f00c";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #FFFFFF;
    font-family: "Font Awesome 6 Free";
    font-size: 8px;
    font-weight: 900;
}

.sf-login-submit {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 55%, #1D4ED8 100%);
    border: 1px solid transparent;
    border-radius: 11px;
    box-shadow: 0 10px 21px rgba(37, 99, 235, 0.23);
    font-size: 12px;
    font-weight: 800;
    transition: 0.2s ease;
}

.sf-login-submit:hover {
    color: #FFFFFF;
    box-shadow: 0 13px 25px rgba(37, 99, 235, 0.30);
    transform: translateY(-1px);
}

.sf-login-submit i {
    transition: transform 0.18s ease;
}

.sf-login-submit:hover i {
    transform: translateX(3px);
}

.sf-login-divider {
    position: relative;
    margin: 28px 0 22px;
    color: #99A9BA;
    font-size: 10px;
    text-align: center;
}

.sf-login-divider::before,
.sf-login-divider::after {
    content: "";
    width: calc(50% - 80px);
    height: 1px;
    position: absolute;
    top: 50%;
    background: #E7EDF5;
}

.sf-login-divider::before {
    left: 0;
}

.sf-login-divider::after {
    right: 0;
}

.sf-login-socials {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 11px;
}

.sf-login-socials button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4D6481;
    background: #FFFFFF;
    border: 1px solid #E0E9F2;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: 0.18s ease;
}

.sf-login-socials button:hover {
    color: var(--sf-login-primary);
    background: #F7FBFF;
    border-color: #B9D7FF;
}

.sf-login-socials .fa-google {
    color: #4285F4;
}

.sf-login-socials .fa-microsoft {
    color: #2563EB;
}

.sf-login-help-box {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 25px;
    padding: 11px 12px;
    color: #69819E;
    background: #F6FAFF;
    border: 1px solid #E2EEFB;
    border-radius: 10px;
}

.sf-login-help-box > span {
    color: #4F8DF7;
    font-size: 13px;
}

.sf-login-help-box p {
    margin: 0;
    font-size: 10px;
    line-height: 1.55;
}

.sf-login-help-box a {
    color: var(--sf-login-primary);
    font-weight: 700;
}

.sf-login-copyright {
    position: absolute;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #99A9BC;
    font-size: 9px;
}

.sf-login-copyright a {
    color: #8195AE;
    font-weight: 600;
}

.sf-login-copyright a:hover {
    color: var(--sf-login-primary);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1110px) {
    .sf-login-layout {
        grid-template-columns: minmax(390px, 0.95fr) minmax(390px, 0.95fr);
    }

    .sf-login-banner {
        padding-right: 35px;
        padding-left: 35px;
    }

    .sf-login-floating-card {
        right: 35px;
    }

    .sf-login-banner__content {
        margin-bottom: 145px;
    }
}

@media (max-width: 850px) {
    .sf-login-layout {
        display: block;
    }

    .sf-login-banner {
        display: none;
    }

    .sf-login-form-side {
        min-height: 100vh;
        padding: 54px 24px 70px;
    }

    .sf-login-mobile-brand {
        display: inline-flex;
    }

    .sf-login-copyright {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .sf-login-form-side {
        padding: 43px 18px 65px;
    }

    .sf-login-heading {
        margin-bottom: 26px;
    }

    .sf-login-heading h2 {
        font-size: 25px;
    }

    .sf-login-socials {
        grid-template-columns: 1fr;
    }

    .sf-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .sf-login-copyright {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 14px;
        text-align: center;
    }
}
