:root {
    --bg: #F7F7F7;
    --card: #FFFFFF;
    --text: #1F2933;
    --muted: #6B7280;
    --line: #E5E7EB;
    --line-strong: #D9DEE5;
    --primary: #FF6A3D;
    --primary-hover: #FF7A4F;
    --primary-border: #FFD2C5;
    --success: #15803d;
    --shadow:
        0 1px 2px rgba(31, 41, 51, 0.04),
        0 18px 40px rgba(31, 41, 51, 0.06);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fp-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 28%),
        var(--bg);
}

.fp-card {
    width: 100%;
    max-width: 520px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.fp-brand-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 18px;
}

.fp-brand-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text);
}

.fp-brand-sub {
    font-size: 20px;
    font-weight: 700;
    color: var(--muted);
}

.fp-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #F3F4F6;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--line);
}

.fp-progress-bar {
    width: 25%;
    height: 100%;
    border-radius: 999px;
    background: var(--primary);
    transition: width .22s ease;
}

.fp-step-indicator {
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.fp-step {
    display: none;
    animation: fadeUp .22s ease;
}

.fp-step.active {
    display: block;
}

.fp-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.fp-title {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.04;
    font-weight: 760;
    letter-spacing: -0.04em;
    color: var(--text);
}

.fp-text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.fp-field {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.fp-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.fp-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.fp-input::placeholder {
    color: #9CA3AF;
}

.fp-input:hover {
    border-color: #D3D9E1;
}

.fp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.12);
}

.fp-input-code {
    text-align: center;
    font-size: 20px;
    letter-spacing: .2em;
    font-weight: 700;
}

.fp-error {
    min-height: 20px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #b42318;
}

.fp-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.fp-actions-center {
    justify-content: center;
}

.fp-btn {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.fp-btn:hover {
    transform: translateY(-1px);
}

.fp-btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-border);
    box-shadow: 0 8px 18px rgba(255, 106, 61, 0.18);
}

.fp-btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-border);
}

.fp-btn-ghost {
    background: #fff;
    color: var(--text-secondary, var(--muted));
}

.fp-btn-ghost:hover {
    background: #FAFAFA;
    border-color: var(--line);
    color: var(--text);
}

.fp-success-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(21, 128, 61, 0.08);
    color: var(--success);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    border: 1px solid rgba(21, 128, 61, 0.12);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .fp-card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .fp-title {
        font-size: 28px;
    }

    .fp-actions {
        flex-direction: column-reverse;
    }

    .fp-btn {
        width: 100%;
    }
}