*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ink: #0c0c0e;
    --ink-2: #1e1e24;
    --ink-3: #3a3a48;
    --muted: #7a7a8c;
    --border: #e4e4ec;
    --white: #ffffff;
    --gold: #fc7c10;
    --gold-lt: #f5e8c8;
    --danger: #dc2626;
    --success: #047857;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: "Outfit", sans-serif;
    background: var(--ink);
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.left-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    background: var(--ink-2);
    overflow: hidden;
}

.left-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(252, 124, 16, .15), transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 20%, rgba(252, 124, 16, .08), transparent 60%);
    pointer-events: none;
}

.left-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(252, 124, 16, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(252, 124, 16, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.lp-top,
.lp-bottom {
    position: relative;
    z-index: 1;
}

.lp-wordmark {
    display: flex;
    align-items: center;
    margin-bottom: 64px;
}

.lp-logo {
    display: block;
    width: min(260px, 80%);
    max-height: 92px;
    object-fit: contain;
    object-position: left center;
}

.lp-logo-fallback {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.lp-logo-fallback i {
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--gold);
}

.lp-headline {
    font-family: "Instrument Serif", serif;
    font-size: clamp(32px, 3.5vw, 52px);
    line-height: 1.15;
    font-weight: 400;
    margin-bottom: 24px;
}

.lp-headline em {
    font-style: italic;
    color: var(--gold);
}

.lp-sub {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 360px;
}

.lp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 28px;
}

.lp-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
}

.lp-stat-lbl {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 48px 40px;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-lt);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.login-tag i {
    font-size: 9px;
}

.login-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: "Outfit", sans-serif;
    font-size: 14.5px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
}

.form-control:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(12, 12, 14, .06);
}

.password-wrap {
    position: relative;
}

.password-wrap .form-control {
    padding-right: 44px;
}

.pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--ink-3);
}

.forgot-link {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
    color: var(--ink);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--ink);
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    background: var(--ink-3);
}

.btn-login:disabled {
    cursor: not-allowed;
    opacity: .85;
}

.btn-login .spinner {
    display: none;
    animation: spin .6s linear infinite;
}

.btn-login.loading .spinner {
    display: inline-block;
}

.btn-login.loading .btn-text {
    opacity: .5;
}

.btn-arrow {
    font-size: 12px;
    margin-left: 4px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-box,
.success-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 9px;
    padding: 12px 14px;
    margin-bottom: 22px;
    font-size: 13.5px;
    line-height: 1.5;
}

.error-box i,
.success-box i {
    margin-top: 2px;
    flex-shrink: 0;
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
}

.success-box {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: var(--success);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    font-size: 12px;
    color: var(--muted);
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-help {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: var(--muted);
}

.login-help a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.login-help a:hover {
    text-decoration: underline;
}

@media (max-width: 860px) {
    body {
        grid-template-columns: 1fr;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        min-height: 100vh;
        background: var(--ink);
        padding: 24px;
    }

    .login-box {
        background: #ffffff;
        border-radius: 16px;
        padding: 36px 28px;
    }

    .form-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}