/* Public landing page (js/landing.js) and small additions for the sign-in pages (js/portal/login.js,
   js/portal/set-password.js). This file is linked on every page, so every selector is prefixed. */

/* ---------- Sign-in pages ---------- */
.auth-hint {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.8125rem;
}

.auth-hint--center {
    margin-top: 0.75rem;
    text-align: center;
}

.auth-code {
    font-size: 1.25rem;
    letter-spacing: 0.4em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.auth-notice {
    margin: 1rem 0 0;
    padding: 0.875rem 1rem;
    border: 1px solid color-mix(in srgb, var(--color-brand) 35%, transparent);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--color-brand) 7%, var(--color-surface));
    color: var(--color-text);
    font-size: 0.9rem;
}

.auth-notice:focus {
    outline: none;
}

.auth-message-center {
    margin-top: 1rem;
    text-align: center;
}

.auth-link {
    color: var(--color-brand);
}

.auth-done-button {
    margin-top: 1.25rem;
    text-decoration: none;
}

/* ---------- Landing: page ---------- */
.page-landing {
    background: var(--color-bg);
}

.landing {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.landing a:focus-visible,
.landing button:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

/* ---------- Landing: header ---------- */
.landing-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1rem;
}

.landing-header__logo {
    display: block;
    height: 1.75rem;
    width: auto;
}

.landing-header__login {
    flex-shrink: 0;
    padding: 0.375rem 1rem;
    border: 1px solid rgb(255 255 255 / 0.3);
    border-radius: 999px;
    color: rgb(255 255 255 / 0.9);
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.landing-header__login:hover {
    border-color: rgb(255 255 255 / 0.7);
    color: #ffffff;
}

.landing .landing-header__login:focus-visible {
    outline-color: #ffffff;
}

/* ---------- Landing: hero ---------- */
.landing-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 92vh;
    min-height: 92svh;
    overflow: hidden;
    background: var(--color-primary);
}

.landing-hero__image,
.landing-banner__image {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.landing-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #17181c, rgb(41 43 49 / 0.85) 50%, rgb(41 43 49 / 0.4));
}

.landing-hero__content {
    position: relative;
    width: min(100% - 2rem, 48rem);
    margin: 0 auto;
    padding: 7rem 0 5rem;
    text-align: center;
}

.landing-hero__title {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
}

.landing-hero__intro {
    max-width: 36rem;
    margin: 1.25rem auto 0;
    color: rgb(255 255 255 / 0.8);
    font-size: 1rem;
}

.landing-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.25rem;
    padding: 1rem 2.25rem;
    border: none;
    border-radius: 999px;
    background: var(--color-brand);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.landing-hero__cta:hover {
    background: #6a5db0;
    transform: scale(1.03);
}

.landing .landing-hero__cta:focus-visible {
    outline-color: #ffffff;
}

/* ---------- Landing: how it works ---------- */
.landing-steps {
    width: min(100% - 2rem, 64rem);
    margin: 0 auto;
    padding: 4rem 0;
    text-align: center;
}

.landing-steps__title {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.landing-steps__intro {
    max-width: 42rem;
    margin: 0.75rem auto 0;
    color: var(--color-text-light);
}

.landing-shots {
    display: grid;
    gap: 2rem;
    margin-top: 2.5rem;
}

.landing-shot {
    margin: 0;
}

.landing-shot__frame {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background: var(--color-surface);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
    transition: box-shadow 0.2s ease;
}

.landing-shot:hover .landing-shot__frame {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.landing-shot__bar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    background: #f1f1f1;
}

.landing-shot__dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
}

.landing-shot__dot--red {
    background: #ff5f57;
}

.landing-shot__dot--yellow {
    background: #febc2e;
}

.landing-shot__dot--green {
    background: #28c840;
}

.landing-shot__image {
    display: block;
    width: 100%;
    height: auto;
}

.landing-shot__label {
    margin-top: 0.75rem;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ---------- Landing: image banner and footer ---------- */
.landing-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45vh;
    min-height: 15rem;
    overflow: hidden;
    background: var(--color-primary);
}

.landing-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgb(41 43 49 / 0.55);
}

.landing-banner__text {
    position: relative;
    padding: 0 1rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
}

.landing-footer {
    padding: 2.5rem 1rem;
    color: var(--color-text-light);
    font-size: 0.875rem;
    text-align: center;
}

/* ---------- Landing: "Kies uw partij" dialog ---------- */
.landing-dialog {
    width: min(42rem, 100% - 2rem);
    max-height: 85vh;
    padding: 0;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.landing-dialog::backdrop {
    background: rgb(0 0 0 / 0.5);
}

.landing-dialog__inner {
    padding: 1.25rem;
}

.landing-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.landing-dialog__title {
    color: var(--color-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.landing-dialog__close {
    display: inline-flex;
    padding: 0.25rem;
    border: none;
    border-radius: var(--radius);
    background: none;
    color: var(--color-text-light);
    cursor: pointer;
}

.landing-dialog__close:hover {
    color: var(--color-primary);
}

.landing-dialog__close-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.landing-dialog__empty {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.landing-parties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.landing-party {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    aspect-ratio: 1;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-primary);
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.landing-party:hover {
    border-color: var(--color-brand);
    background: color-mix(in srgb, var(--color-brand) 5%, transparent);
}

.landing-party__logo {
    display: block;
    max-width: 100%;
    max-height: 3rem;
    object-fit: contain;
}

.landing-party__icon {
    width: 2rem;
    height: 2rem;
    color: var(--color-text-light);
}

.landing-party__name {
    max-width: 100%;
    font-size: 0.875rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* ---------- Landing: larger screens ---------- */
@media (min-width: 640px) {
    .landing-shots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-parties {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-dialog__inner {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .landing-header {
        padding: 1.25rem 3rem;
    }

    .landing-header__logo {
        height: 2rem;
    }

    .landing-hero__content {
        width: min(80%, 48rem);
        padding: 10rem 0;
    }

    .landing-hero__title {
        font-size: 3.75rem;
    }

    .landing-hero__intro {
        font-size: 1.125rem;
    }

    .landing-steps {
        width: min(80%, 64rem);
        padding: 5rem 0;
    }

    .landing-steps__title {
        font-size: 1.875rem;
    }

    .landing-banner__text {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero__cta,
    .landing-shot__frame,
    .landing-party,
    .landing-header__login {
        transition: none;
    }

    .landing-hero__cta:hover {
        transform: none;
    }
}
