:root {
    color-scheme: light;
    --ink: #18333b;
    --muted: #5e7377;
    --teal: #143d4a;
    --coral: #c74e34;
    --line: #dde5e2;
}

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

html { min-height: 100%; background: #143d4a; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding: 32px 20px;
    display: grid;
    place-items: center;
    color: var(--ink);
    font-family: 'Montserrat', Arial, sans-serif;
    background:
        linear-gradient(115deg, rgba(5, 25, 31, .6), rgba(12, 37, 43, .35)),
        url('../images/site/bg_image.png') center / cover no-repeat;
    background-attachment: fixed;
}

button, input { font: inherit; }
a { color: inherit; }
svg { display: block; flex-shrink: 0; }

.verify-card {
    width: 100%;
    max-width: 460px;
    padding: 28px 36px 24px;
    background: #fffdf8;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(5, 25, 31, .28);
}

.brand {
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--teal);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.9px;
    text-transform: uppercase;
}

.brand::before, .brand::after {
    content: '';
    width: 20px;
    height: 1px;
    background: #d6a78a;
}

.verify-header { text-align: center; }

.status-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border: 1px solid #f3d8c9;
    border-radius: 20px;
    background: #fff0e7;
    color: var(--coral);
}

h1 {
    margin: 0 0 10px;
    color: var(--teal);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 6vw, 34px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.6px;
}

.intro {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.email-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin: 15px 0 0;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f1f5f2;
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.email-pill span { min-width: 0; overflow-wrap: anywhere; }

.verification-form { margin-top: 22px; }

.field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.field-heading label { font-size: 12px; font-weight: 600; }
.field-heading span { color: var(--muted); font-size: 11px; }

.code-input {
    display: block;
    width: 100%;
    min-height: 66px;
    padding: 13px 12px 13px calc(12px + .38em);
    border: 1px solid #cbd9d7;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--teal);
    font-size: 28px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
    letter-spacing: .38em;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.code-input::placeholder { color: #9aabad; opacity: 1; }
.code-input:focus { border-color: #5b979c; box-shadow: 0 0 0 3px rgba(93, 174, 177, .16); }

.field-help { margin: 9px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--coral);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(199, 78, 52, .14);
    transition: background 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover { background: #ad3f28; box-shadow: 0 7px 18px rgba(199, 78, 52, .2); }

.expiry-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 13px 0 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.resend-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.text-button {
    min-height: 44px;
    padding: 8px 4px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--coral);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-underline-offset: 3px;
}

.text-button:hover { color: #ad3f28; text-decoration: underline; }

.card-footer {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px;
    border-radius: 6px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover { background: #edf3f0; }
.card-footer p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }

button:focus-visible, a:focus-visible { outline: 3px solid #5b979c; outline-offset: 3px; }

.alert {
    margin: 20px 0 0;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.alert-success { background: #eef7f0; border-color: #c9e3d0; color: #285b3c; }
.alert-error { background: #fff0ec; border-color: #f0c9be; color: #9f3524; }

.success-icon { background: #edf5ef; border-color: #c9dfcf; color: #38724b; }
.success-note .primary-button { margin-top: 26px; }
.success-caption { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 11px; }

@media (max-width: 480px) {
    body { padding: 20px 16px; background-attachment: scroll; }
    .verify-card { padding: 28px 24px 22px; border-radius: 18px; }
    .brand { font-size: 9px; letter-spacing: 1.5px; }
    .brand::before, .brand::after { width: 14px; }
    .code-input { font-size: 26px; letter-spacing: .3em; padding-left: calc(12px + .3em); }
}

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