@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/Poppins-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/Poppins-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/Poppins-Bold.woff2") format("woff2");
}

:root {
    --primary-dark: #14003E;
    --primary-accent: #2F36FF;
    --accent-light: #6B6FFF;
    --deep-slate: #212C37;
    --surface-tint: #EEEDFE;
    --surface-grey: #ECECF2;
    --muted-text: #5F5E6B;
    --base: #FFFFFF;
    --error: #B3261E;
    --success: #1E7A4B;
    --radius: 10px;
    --shadow: 0 18px 48px rgba(20, 0, 62, 0.10);
    --font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-weight: 400;
    background-color: var(--surface-tint);
    color: var(--deep-slate);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.55;
}

a {
    color: var(--primary-accent);
}

:focus-visible {
    outline: 3px solid var(--primary-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.masthead {
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem clamp(1rem, 5vw, 3rem);
}

.masthead-brand {
    display: inline-flex;
    align-items: center;
}

.masthead-logo {
    height: 2rem;
    width: auto;
}

.masthead-badge {
    color: var(--base);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.page {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1.5rem, 6vw, 4rem) 1rem;
}

.card {
    width: 100%;
    max-width: 560px;
    background: var(--base);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.75rem, 5vw, 3rem);
}

.card-title {
    color: var(--primary-dark);
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.card-subtitle,
.card-status {
    color: var(--muted-text);
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.375rem;
}

.field input {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--deep-slate);
    background-color: var(--surface-tint);
    border: 1px solid var(--surface-grey);
    border-radius: var(--radius);
    padding: 0.75rem 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:hover {
    border-color: var(--accent-light);
}

.field input:focus {
    outline: none;
    background-color: var(--base);
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(47, 54, 255, 0.18);
}

.field input[aria-invalid="true"] {
    border-color: var(--error);
}

.field-hint {
    font-size: 0.8125rem;
    color: var(--muted-text);
    margin-top: 0.375rem;
}

.field-error {
    font-size: 0.8125rem;
    color: var(--error);
    margin-top: 0.375rem;
    min-height: 0;
}

.field-error:empty {
    display: none;
}

.field-decoy {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-consent {
    margin: 1.5rem 0;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--muted-text);
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    accent-color: var(--primary-accent);
    cursor: pointer;
}

.consent-label input[aria-invalid="true"] {
    outline: 2px solid var(--error);
    outline-offset: 2px;
}

.consent {
    font-size: 0.8125rem;
    color: var(--muted-text);
    margin: 1.5rem 0;
}

button[type="submit"],
.button-secondary {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

button[type="submit"] {
    color: var(--base);
    background-color: var(--primary-accent);
}

button[type="submit"]:hover:not(:disabled) {
    background-color: var(--accent-light);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: progress;
}

.button-secondary {
    color: var(--primary-dark);
    background-color: var(--surface-tint);
    border: 1px solid var(--surface-grey);
}

.button-secondary:hover {
    background-color: var(--surface-grey);
}

.alert {
    border-radius: var(--radius);
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
}

.alert-error {
    color: var(--error);
    background-color: #FDF1F0;
    border: 1px solid #F3D2CF;
}

.badge-success {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background-color: var(--success);
    color: var(--base);
    font-size: 1.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.footer {
    background-color: var(--primary-dark);
    color: var(--base);
    font-size: 0.8125rem;
    text-align: center;
    padding: 1.5rem 1rem;
}

.footer-company {
    opacity: 0.75;
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.footer-links a {
    color: var(--base);
}

.hidden {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
