:root {
    --fp-black: #1b1b1a;
    --fp-black-deep: #141413;
    --fp-orange: #f15a29;
    --fp-orange-dark: #d94b20;
    --fp-orange-soft: #fff1eb;
    --fp-white: #ffffff;
    --fp-ink: #171716;
    --fp-muted: #777773;
    --fp-border: #e8e7e4;
    --fp-soft: #f7f7f5;
    --fp-radius: 22px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    background: #f4f3f0;
    color: var(--fp-ink);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, input { font: inherit; }

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 34px;
}

.login-header {
    width: min(1240px, 100%);
    height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fp-logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--fp-white);
    text-decoration: none;
    line-height: 1;
}

.fp-logo-bars {
    position: relative;
    width: 48px;
    height: 42px;
    display: inline-flex;
    align-items: flex-end;
    gap: 5px;
}

.fp-logo-bars .bar {
    display: block;
    width: 9px;
    border-radius: 999px;
    background: var(--fp-orange);
}

.fp-logo-bars .bar-1 { height: 22px; opacity: .72; }
.fp-logo-bars .bar-2 { height: 31px; opacity: .88; }
.fp-logo-bars .bar-3 { height: 42px; }

.fp-logo-word {
    font-family: "Manrope", sans-serif;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -.055em;
    color: #fff;
}

.fp-logo-word span { color: var(--fp-orange); }

.login-header .fp-logo { color: var(--fp-black); }
.login-header .fp-logo-word { color: var(--fp-black); }

.header-help {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #777773;
    font-size: 14px;
}

.header-help a,
.signup-prompt a,
.sales-contact a {
    color: var(--fp-orange);
    text-decoration: none;
    font-weight: 700;
}

.header-help a:hover,
.signup-prompt a:hover,
.sales-contact a:hover { color: var(--fp-orange-dark); }

.login-shell {
    width: min(1240px, 100%);
    margin: 0 auto;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr);
    min-height: 670px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 75px rgba(25, 25, 23, .13);
}

.login-story {
    position: relative;
    overflow: hidden;
    min-height: 670px;
    padding: 68px 64px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 13%, rgba(241,90,41,.20), transparent 25%),
        radial-gradient(circle at 12% 88%, rgba(255,255,255,.06), transparent 27%),
        linear-gradient(145deg, #151514 0%, #1d1d1b 58%, #252522 100%);
}

.story-content {
    position: relative;
    z-index: 3;
    max-width: 620px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    color: #d7d7d3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.eyebrow-dot,
.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: var(--fp-orange);
    box-shadow: 0 0 0 4px rgba(241,90,41,.12);
}

.login-story h1 {
    margin: 32px 0 20px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(44px, 4.3vw, 66px);
    line-height: 1.02;
    letter-spacing: -.065em;
    font-weight: 800;
}

.login-story h1 em {
    color: var(--fp-orange);
    font-style: normal;
}

.story-copy {
    max-width: 550px;
    margin: 0;
    color: #b9b9b4;
    font-size: 16px;
    line-height: 1.75;
}

.story-points {
    margin-top: 45px;
    display: grid;
    gap: 16px;
    max-width: 520px;
}

.story-point {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(255,255,255,.035);
    backdrop-filter: blur(8px);
}

.point-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--fp-orange);
    background: rgba(241,90,41,.11);
    font-size: 17px;
}

.story-point strong {
    display: block;
    color: #f4f4f1;
    font-size: 14px;
    font-weight: 700;
}

.story-point span:last-child {
    display: block;
    margin-top: 2px;
    color: #8f8f8a;
    font-size: 12px;
}

.story-footer {
    position: absolute;
    left: 64px;
    bottom: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8f8f8a;
    font-size: 12px;
}

.story-grid {
    position: absolute;
    right: -70px;
    bottom: -60px;
    width: 330px;
    height: 250px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
    transform: rotate(-9deg);
    opacity: .45;
}

.story-grid span {
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 9px;
}

.login-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px 66px;
    background: #fff;
}

.mobile-brand { display: none; }

.login-heading .heading-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--fp-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: #171716;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.045em;
}

.login-heading p {
    margin: 10px 0 0;
    color: var(--fp-muted);
    font-size: 14px;
    line-height: 1.6;
}

.login-alert {
    margin-top: 25px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid #f5c8bb;
    border-radius: 13px;
    color: #9c351c;
    background: var(--fp-orange-soft);
    font-size: 14px;
    line-height: 1.5;
}

.alert-icon { flex: 0 0 auto; font-size: 17px; }

.login-form { margin-top: 29px; }

.field-group { margin-bottom: 21px; }

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
}

.field-group label {
    display: block;
    margin: 0 0 8px;
    color: #30302e;
    font-size: 14px;
    font-weight: 700;
}

.field-label-row label { margin: 0; }

.field-label-row a {
    color: #777773;
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
}

.field-label-row a:hover { color: var(--fp-orange); }

.field-wrap { position: relative; }

.field-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #92928d;
    font-size: 17px;
    pointer-events: none;
}

.field-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 48px;
    border: 1px solid #deddd9;
    border-radius: 13px;
    outline: none;
    background: #fff;
    color: #191918;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field-wrap input::placeholder { color: #aaa9a4; }

.field-wrap input:hover { border-color: #c9c8c3; }

.field-wrap input:focus {
    border-color: var(--fp-orange);
    box-shadow: 0 0 0 4px rgba(241,90,41,.10);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    color: #8c8c87;
    background: transparent;
}

.password-toggle:hover {
    color: var(--fp-orange);
    background: var(--fp-orange-soft);
}

.login-button {
    width: 100%;
    height: 56px;
    margin-top: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: var(--fp-orange);
    box-shadow: 0 12px 25px rgba(241,90,41,.22);
    font-size: 14px;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.login-button:hover {
    background: var(--fp-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(241,90,41,.27);
}

.login-button:active { transform: translateY(0); }

.login-button:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.login-divider {
    position: relative;
    margin: 27px 0 21px;
    text-align: center;
    color: #a0a09b;
    font-size: 12px;
}

.login-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #ebeae7;
}

.login-divider span {
    position: relative;
    padding: 0 12px;
    background: #fff;
}

.signup-prompt {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    color: #777773;
    font-size: 13px;
    line-height: 1.6;
}

.secure-login {
    margin-top: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #92928d;
    font-size: 12px;
}

.secure-login i { color: #6e9b62; font-size: 15px; }

.sales-contact {
    margin-top: 13px;
    display: flex;
    justify-content: center;
    gap: 5px;
    color: #a09f9a;
    font-size: 11px;
}

.login-footer {
    width: min(1240px, 100%);
    margin: 0 auto;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #92918c;
    font-size: 11px;
}

@media (max-width: 1050px) {
    .login-page { padding: 0 20px; }

    .login-shell {
        grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
    }

    .login-story { padding: 55px 45px; }
    .story-footer { left: 45px; }
    .login-card { padding: 48px 44px; }

    .login-story h1 { font-size: 49px; }
}

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

    .login-story {
        min-height: auto;
        padding: 46px 42px 42px;
    }

    .login-story h1 {
        font-size: 47px;
        max-width: 600px;
    }

    .story-footer,
    .story-grid { display: none; }

    .login-card { padding: 45px 50px 50px; }
}

@media (max-width: 620px) {
    .login-page { padding: 0 12px; }

    .login-header {
        height: 72px;
    }

    .login-header .fp-logo-bars { width: 35px; height: 31px; gap: 4px; }
    .login-header .fp-logo-bars .bar { width: 7px; }
    .login-header .fp-logo-bars .bar-1 { height: 16px; }
    .login-header .fp-logo-bars .bar-2 { height: 23px; }
    .login-header .fp-logo-bars .bar-3 { height: 31px; }
    .login-header .fp-logo-word { font-size: 23px; }
    .header-help { display: none; }

    .login-shell {
        border-radius: 22px;
        box-shadow: 0 20px 55px rgba(25,25,23,.11);
    }

    .login-story { padding: 34px 25px; }

    .login-story h1 {
        margin-top: 25px;
        font-size: 39px;
    }

    .story-copy { font-size: 14px; }

    .story-points { margin-top: 30px; }

    .story-point {
        padding: 11px;
    }

    .story-point strong { font-size: 13px; }
    .story-point span:last-child { font-size: 11px; }

    .login-card {
        padding: 30px 23px 32px;
    }

    .mobile-brand {
        display: block;
        margin-bottom: 31px;
    }

    .mobile-brand .fp-logo {
        color: var(--fp-black);
    }

    .mobile-brand .fp-logo-bars {
        width: 39px;
        height: 34px;
        gap: 4px;
    }

    .mobile-brand .fp-logo-bars .bar { width: 8px; }
    .mobile-brand .fp-logo-bars .bar-1 { height: 18px; }
    .mobile-brand .fp-logo-bars .bar-2 { height: 25px; }
    .mobile-brand .fp-logo-bars .bar-3 { height: 34px; }

    .mobile-brand .fp-logo-word { color: var(--fp-black); font-size: 25px; }

    .login-heading h2 { font-size: 29px; }

    .login-heading p { font-size: 14px; }

    .login-footer {
        min-height: 58px;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
    }
}

@media (max-width: 380px) {
    .login-story h1 { font-size: 34px; }
    .login-card { padding-left: 18px; padding-right: 18px; }
    .sales-contact { flex-direction: column; align-items: center; }
}
