* {
    box-sizing: border-box;
}

/* ── Layout ─────────────────────────────────────────── */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    font-family: var(--font-sans);
    color: var(--text-main);
}

.page-main {
    flex: 1;
    display: flex;
    min-height: 0;
}

/* ── Brand panel (left) ─────────────────────────────── */
.brand-panel {
    flex: 1;
    background: linear-gradient(145deg, #0f172a 0%, #1a2e6b 60%, #305CDE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 56px;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(48, 92, 222, 0.18) 0%, transparent 65%);
    top: -100px;
    right: -120px;
    pointer-events: none;
}

.brand-panel::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 65%);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.brand-eyebrow {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #93c5fd;
    margin-bottom: 20px;
}

.brand-headline {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin: 0 0 18px 0;
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin: 0 0 40px 0;
}

.brand-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.brand-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.brand-check {
    width: 22px;
    height: 22px;
    background: rgba(48, 92, 222, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 800;
}

/* ── Form panel (right) ─────────────────────────────── */
.form-panel {
    width: 500px;
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.form-inner {
    padding: 56px 52px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0 0 32px 0;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

input[type="email"],
input[type="text"],
textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-sans);
    color: var(--text-main);
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(48, 92, 222, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e3a8a 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(48, 92, 222, 0.3);
    font-family: var(--font-sans);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(48, 92, 222, 0.4);
    filter: brightness(1.07);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── States ─────────────────────────────────────────── */
.hidden {
    display: none !important;
}

.form-success {
    text-align: center;
    padding: 20px 0 8px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.success-icon {
    width: 54px;
    height: 54px;
    background: rgba(48, 92, 222, 0.09);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-blue);
    margin: 0 auto 20px auto;
}

.form-success h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--text-main);
}

.form-success p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.form-error {
    margin-top: 14px;
    padding: 13px 15px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: 14px;
    color: #b91c1c;
}

.form-error a {
    color: #b91c1c;
    font-weight: 600;
}

/* ── Page footer ─────────────────────────────────────── */
.page-footer {
    margin-top: auto;
    padding-top: 32px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.page-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.page-footer p {
    margin-top: 6px;
    opacity: 0.8;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
    .page-main {
        flex-direction: column;
    }

    .brand-panel {
        padding: 40px 28px;
        align-items: flex-start;
    }

    .brand-headline {
        font-size: 28px;
    }

    .brand-sub {
        display: none;
    }

    .brand-points {
        display: none;
    }

    .form-panel {
        width: 100%;
    }

    .form-inner {
        padding: 40px 28px;
    }
}
