:root {
    --fp-auth-dark: #0f172a;
    --fp-auth-dark-soft: #1e293b;
    --fp-auth-blue: #2563eb;
    --fp-auth-blue-dark: #1d4ed8;
    --fp-auth-blue-soft: #dbeafe;
    --fp-auth-text: #0f172a;
    --fp-auth-muted: #64748b;
    --fp-auth-border: #dbe3ef;
    --fp-auth-background: #edf3fb;
}

* {
    box-sizing: border-box;
}

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

.fp-auth-body {
    min-height: 100vh;
    margin: 0;
    color: var(--fp-auth-text);
    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.16),
            transparent 34%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(15, 23, 42, 0.13),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #eef4ff 0%,
            #f8fafc 52%,
            #e2e8f0 100%
        );
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.fp-auth-shell {
    width: min(1120px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 26px;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.2);
}

.fp-auth-brand {
    position: relative;
    overflow: hidden;
    padding: 58px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 82% 78%,
            rgba(96, 165, 250, 0.4),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #0f172a 0%,
            #172554 56%,
            #1e3a8a 100%
        );
}

.fp-auth-brand::before {
    position: absolute;
    top: -90px;
    left: -90px;
    width: 280px;
    height: 280px;
    content: "";
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.22);
}

.fp-auth-brand::after {
    position: absolute;
    right: -130px;
    bottom: -130px;
    width: 350px;
    height: 350px;
    content: "";
    border-radius: 50%;
    background: rgba(147, 197, 253, 0.17);
}

.fp-auth-brand-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fp-auth-product,
.fp-auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fp-auth-product {
    margin-bottom: 74px;
}

.fp-auth-mobile-brand {
    display: none;
    margin-bottom: 36px;
}

.fp-auth-product-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #38bdf8,
        #2563eb
    );
    border-radius: 17px;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.34);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.fp-auth-product-title {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.fp-auth-product-subtitle {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.74rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.fp-auth-mobile-brand .fp-auth-product-title {
    color: var(--fp-auth-text);
}

.fp-auth-mobile-brand .fp-auth-product-subtitle {
    color: var(--fp-auth-muted);
}

.fp-auth-kicker,
.fp-auth-form-kicker {
    margin-bottom: 16px;
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.17em;
}

.fp-auth-kicker {
    color: rgba(255, 255, 255, 0.62);
}

.fp-auth-form-kicker {
    color: var(--fp-auth-blue);
}

.fp-auth-copy h1 {
    max-width: 520px;
    margin: 0 0 22px;
    font-size: clamp(2.15rem, 4vw, 3.25rem);
    font-weight: 950;
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.fp-auth-copy p {
    max-width: 540px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.04rem;
    line-height: 1.72;
}

.fp-auth-benefits {
    margin-top: auto;
    display: grid;
    gap: 16px;
}

.fp-auth-benefit {
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 650;
}

.fp-auth-benefit-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.11);
    font-weight: 900;
}

.fp-auth-panel {
    padding: 56px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-auth-form-wrap {
    width: 100%;
    max-width: 430px;
}

.fp-auth-form-wrap-wide {
    max-width: 480px;
}

.fp-auth-form-head {
    margin-bottom: 32px;
}

.fp-auth-form-head h2 {
    margin: 0 0 8px;
    font-size: 2.05rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.fp-auth-form-head p {
    margin: 0;
    color: var(--fp-auth-muted);
    line-height: 1.65;
}

.fp-auth-form-head code {
    color: #334155;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 5px;
}

.fp-auth-panel .form-label {
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
}

.fp-auth-panel .form-control {
    min-height: 50px;
    padding: 12px 14px;
    color: var(--fp-auth-text);
    border: 1px solid var(--fp-auth-border);
    border-radius: 10px;
    box-shadow: none;
}

.fp-auth-panel .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.fp-auth-submit {
    min-height: 50px;
    padding: 12px 20px;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        var(--fp-auth-blue),
        var(--fp-auth-blue-dark)
    );
    box-shadow: 0 13px 28px rgba(37, 99, 235, 0.25);
    font-weight: 800;
}

.fp-auth-submit:hover,
.fp-auth-submit:focus {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #1d4ed8,
        #1e40af
    );
}

.fp-auth-footer {
    margin-top: 28px;
    color: #94a3b8;
    font-size: 0.78rem;
    text-align: center;
}

.fp-auth-simple-page {
    width: min(560px, 100%);
}

.fp-auth-simple-card {
    padding: 52px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
    text-align: center;
}

.fp-auth-simple-card h1 {
    margin-bottom: 14px;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.fp-auth-simple-card p {
    margin-bottom: 28px;
    color: var(--fp-auth-muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .fp-auth-body {
        padding: 20px;
    }

    .fp-auth-shell {
        width: min(620px, 100%);
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .fp-auth-brand {
        display: none;
    }

    .fp-auth-panel {
        padding: 46px 42px;
    }

    .fp-auth-mobile-brand {
        display: flex;
    }
}

@media (max-width: 575px) {
    .fp-auth-body {
        padding: 0;
        align-items: stretch;
        background: #ffffff;
    }

    .fp-auth-shell {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .fp-auth-panel {
        min-height: 100vh;
        padding: 32px 24px;
        align-items: flex-start;
    }

    .fp-auth-form-wrap {
        max-width: none;
    }

    .fp-auth-form-head h2 {
        font-size: 1.8rem;
    }

    .fp-auth-simple-card {
        min-height: 100vh;
        padding: 40px 24px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}