@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
    --page-top: #183b72;
    --page-bottom: #0a142b;
    --panel: rgba(15, 30, 59, 0.94);
    --panel-border: rgba(142, 193, 255, 0.45);
    --text: #f5f9ff;
    --muted: #b9c9e1;
    --input: #0a1730;
    --input-border: #426b9f;
    --blue-light: #3b86df;
    --blue-dark: #143b77;
    --gold: #f8d57e;
    --danger-bg: rgba(115, 34, 44, 0.88);
    --danger-border: #e7838d;
    --success-bg: rgba(27, 102, 68, 0.88);
    --success-border: #75d8a4;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: "Montserrat", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(70, 139, 219, 0.55), transparent 38%),
        radial-gradient(circle at bottom right, rgba(40, 104, 75, 0.38), transparent 45%),
        linear-gradient(145deg, var(--page-top), var(--page-bottom));
}

.page {
    width: min(100% - 32px, 620px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
}

.back-link {
    display: inline-block;
    width: fit-content;
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.card {
    padding: 38px;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.17em;
}

h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.9rem, 6vw, 2.9rem);
    line-height: 1.08;
}

.intro {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

form {
    margin-top: 28px;
}

label {
    display: block;
    margin: 19px 0 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

input,
select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--input-border);
    border-radius: 9px;
    color: var(--text);
    background: var(--input);
    font: inherit;
}

input:focus,
select:focus {
    border-color: var(--gold);
    outline: 3px solid rgba(248, 213, 126, 0.24);
    outline-offset: 1px;
}

select option {
    color: #ffffff;
    background: #10284e;
}

small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.45;
}

.checkbox-row input {
    width: auto;
    margin: 3px 0 0;
    accent-color: var(--blue-light);
}

.button {
    display: inline-flex;
    width: 100%;
    min-height: 54px;
    margin-top: 25px;
    padding: 0 20px;
    border: 2px solid rgba(255, 236, 159, 0.90);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: #fff8df;
    background:
        linear-gradient(rgba(255, 255, 255, 0.20), transparent 42%),
        linear-gradient(135deg, var(--blue-light), var(--blue-dark));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        0 5px 0 #081b3a,
        0 10px 22px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.55);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.button:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(3px);
}

.alert {
    margin-top: 24px;
    padding: 15px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.error {
    border-color: var(--danger-border);
    background: var(--danger-bg);
}

.success {
    border-color: var(--success-border);
    background: var(--success-bg);
}

@media (max-width: 560px) {
    .page {
        width: min(100% - 24px, 620px);
        padding: 18px 0;
    }

    .card {
        padding: 30px 24px;
        border-radius: 14px;
    }
}