.page-content {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.page-heading {
    margin-bottom: 1.5rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: .55rem;
    color: #1d4ed8;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.page-content h1 {
    font-size: clamp(1.7rem, 4vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -.035em;
    margin-bottom: .7rem;
}

.intro {
    color: var(--muted, #64748b);
    font-size: .96rem;
    max-width: 65ch;
}

.card {
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
    padding: clamp(1.25rem, 4vw, 2rem);
}

.form-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e8eef6;
}

.form-header-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.05rem;
    font-weight: 900;
}

.form-header h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.form-header p {
    margin-top: .2rem;
    color: var(--muted, #64748b);
    font-size: .8rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.page-content label {
    display: block;
    margin-bottom: .45rem;
    color: var(--text, #111827);
    font-size: .88rem;
    font-weight: 750;
}

.required {
    color: #dc2626;
}

.field-help {
    display: block;
    margin-top: .35rem;
    color: var(--muted, #64748b);
    font-size: .76rem;
}

.password-field {
    position: relative;
}

.password-field input[type="password"],
.password-field input[type="text"] {
    padding-right: 3.1rem;
}

.toggle-code {
    position: absolute;
    top: 50%;
    right: .45rem;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 0;
}

.toggle-code:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.toggle-code:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.toggle-code svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

.toggle-code .icon-hidden {
    display: none;
}

.toggle-code.is-visible .icon-visible {
    display: none;
}

.toggle-code.is-visible .icon-hidden {
    display: block;
}

.page-content input[type="email"],
.page-content input[type="number"],
.page-content input[type="date"],
.page-content input[type="password"],
.page-content input[type="text"],
.page-content select {
    width: 100%;
    min-height: 48px;
    padding: .72rem .9rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: var(--text, #111827);
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.page-content select {
    cursor: pointer;
}

.page-content input::placeholder {
    color: #9ca3af;
}

.page-content input:hover,
.page-content select:hover {
    border-color: #93c5fd;
}

.page-content input:focus,
.page-content select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: .35rem 0 1.4rem;
    padding: .9rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e40af;
    font-size: .82rem;
}

.security-note-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    font-size: .72rem;
    font-weight: 900;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-top: .1rem;
    padding: .85rem .9rem;
    border: 1px solid #e8eef6;
    border-radius: 12px;
    background: #f8fafc;
}

.checkbox-group input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: .12rem;
    accent-color: #2563eb;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-weight: 650;
    cursor: pointer;
}

.actions {
    margin-top: 1.35rem;
}

.page-content button[type="submit"] {
    width: 100%;
    min-height: 50px;
    padding: .82rem 1.3rem;
    border: 0;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .24);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.page-content button[type="submit"]:hover,
.page-content button[type="submit"]:focus-visible {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.page-content button[type="submit"]:active {
    transform: translateY(0);
}

.form-footer-note {
    margin-top: 1rem;
    text-align: center;
    color: var(--muted, #64748b);
    font-size: .74rem;
}

@media (max-width: 640px) {
    .card {
        border-radius: 16px;
        padding: 1.15rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group-full {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-content button[type="submit"],
    .page-content input,
    .page-content select {
        transition: none;
    }
}
