/* House style of the MijnMima coming soon page. The look of the original static page is kept
   exactly as it was (background, veil, card, fonts, gold); everything below the signature is new
   styling for the signup form and the admin overview. Never CSS inside a .razor file. */

/* Self-hosted brand fonts (latin subset is enough for Dutch). */
@font-face {
    font-family: 'Fredoka';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/fredoka-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/quicksand-latin.woff2') format('woff2');
}

:root {
    --mm-night: #1F0B02;
    --mm-gold: #F5B75B;
    --mm-cream: #FFE8BE;
    --mm-warmwhite: #FFF3DF;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    /* No background-attachment: fixed — iOS Safari renders that one wrong. */
    background: var(--mm-night) url('../background.jpg') center / cover no-repeat;
    font-family: 'Quicksand', sans-serif;
    color: var(--mm-warmwhite);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6vh 1.25rem;
}

/* Dark veil + vignette, so the art stays visible but the text stays readable. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(20, 10, 0, 0.35) 30%, rgba(20, 10, 0, 0.82) 100%);
}

main {
    position: relative;
    width: min(40rem, 100%);
    text-align: center;
    background: rgba(31, 11, 2, 0.78);
    border: 1px solid rgba(255, 232, 190, 0.3);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 18px 40px rgba(10, 5, 0, 0.55);
    animation: appear 1.2s ease-in-out both;
}

img.logo {
    width: min(20rem, 100%);
    height: auto;
    border-radius: 18px;
    box-shadow: 0 0 30px 4px rgba(255, 199, 74, 0.35);
}

h1 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.05;
    color: var(--mm-cream);
    margin: 1.75rem 0 1rem;
}

p {
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 34ch;
    margin: 0 auto 1rem;
}

p.signature {
    font-size: 1.125rem;
    color: var(--mm-gold);
    margin-bottom: 0;
}

footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 232, 190, 0.2);
    font-size: 0.875rem;
    color: rgba(255, 243, 223, 0.75);
}

footer a {
    color: var(--mm-gold);
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 0.25rem;
}

footer a:hover,
footer a:focus {
    text-decoration: underline;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* On a wide screen the card steps aside, so Mima and the cake stay in view. */
@media (min-width: 62rem) {
    body {
        background-position: 34% center;
        justify-content: flex-end;
        padding-right: 6vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    main {
        animation: none;
    }
}

/* ---------------------------------------------------------------------------
   Signup form on the card
   --------------------------------------------------------------------------- */

.mm-form {
    margin-top: 1.75rem;
    text-align: left;
}

.mm-form__intro {
    text-align: center;
    max-width: none;
}

.mm-field {
    margin-bottom: 1rem;
}

.mm-field__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    color: var(--mm-cream);
}

.mm-field__hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: rgba(255, 243, 223, 0.7);
}

/* Telerik inputs on a dark card: light background, brand-coloured focus ring. */
.mm-form .k-input,
.mm-form .k-picker {
    width: 100%;
    min-height: 48px; /* touch target — parents fill this in on a phone */
    border-radius: 12px;
    border-color: rgba(255, 232, 190, 0.45);
    background: rgba(255, 243, 223, 0.96);
    color: var(--mm-night);
    font-family: 'Quicksand', sans-serif;
}

.mm-form .k-input:focus-within,
.mm-form .k-picker:focus-within {
    border-color: var(--mm-gold);
    box-shadow: 0 0 0 3px rgba(245, 183, 91, 0.35);
}

.mm-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    background: rgba(255, 243, 223, 0.06);
    border: 1px solid rgba(255, 232, 190, 0.18);
}

.mm-choice--highlight {
    background: rgba(245, 183, 91, 0.14);
    border-color: rgba(245, 183, 91, 0.5);
}

.mm-choice__text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.mm-choice__title {
    display: block;
    color: var(--mm-cream);
    font-weight: 600;
}

/* The link to the privacy statement sits in a checkbox label; without this it turns browser blue. */
.mm-choice__text a {
    color: var(--mm-gold);
}

.mm-address {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem 0.35rem;
    border-radius: 14px;
    background: rgba(255, 243, 223, 0.06);
    border: 1px solid rgba(255, 232, 190, 0.2);
}

.mm-address__row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mm-address__row > .mm-field {
    flex: 1 1 8rem;
}

.mm-fieldset {
    border: 0;
    margin: 0 0 0.5rem;
    padding: 0;
}

.mm-fieldset__legend {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.0625rem;
    color: var(--mm-gold);
    margin: 1.25rem 0 0.75rem;
    padding: 0;
}

/* The wooden gold button from the brand guide; never white text on gold. */
.mm-button {
    display: inline-block;
    width: 100%;
    min-height: 52px;
    margin-top: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #F7C878 0%, #E39F3F 100%);
    color: #3A1B04;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(10, 5, 0, 0.45);
}

.mm-button:hover,
.mm-button:focus {
    filter: brightness(1.05);
}

.mm-button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* The quiet page only shows this invitation; the whole form appears after a click on it. */
.mm-invite {
    margin-top: 1.75rem;
}

.mm-invite .mm-button {
    width: auto;
    min-width: 14rem;
    margin-top: 0;
}

.mm-invite__hint {
    margin: 0.75rem auto 0;
    font-size: 0.875rem;
    color: rgba(255, 243, 223, 0.75);
    max-width: 30ch;
}

/* "Never mind" next to the submit button: a text button, so it never competes with the gold one. */
.mm-button-quiet {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    border: 0;
    background: none;
    color: rgba(255, 243, 223, 0.75);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
}

.mm-button-quiet:hover,
.mm-button-quiet:focus {
    color: var(--mm-gold);
    text-decoration: underline;
}

.mm-message {
    margin: 1rem auto 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    max-width: none;
}

.mm-message--ok {
    background: rgba(120, 170, 90, 0.22);
    border: 1px solid rgba(170, 220, 140, 0.5);
    color: var(--mm-warmwhite);
}

.mm-message--error {
    background: rgba(170, 60, 40, 0.22);
    border: 1px solid rgba(230, 130, 110, 0.5);
    color: var(--mm-warmwhite);
}

.mm-validation {
    color: #FFC9B3;
    font-size: 0.85rem;
}

.mm-legal {
    font-size: 0.8125rem;
    color: rgba(255, 243, 223, 0.72);
    max-width: none;
}

.mm-legal a {
    color: var(--mm-gold);
}

/* ---------------------------------------------------------------------------
   Admin section (/beheer)
   --------------------------------------------------------------------------- */

/* The admin covers the whole page with a light surface: a grid full of data has to be readable.
   Done with a full-width block instead of a body class, because a .razor may not set body styling. */
.mm-admin {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: -6vh -1.25rem;
    padding: 1.5rem 2rem 3rem;
    background: #F6EEE2;
    color: #2B1608;
}

.mm-admin p,
.mm-admin dd {
    max-width: none;
}

.mm-admin__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.mm-admin__title {
    font-family: 'Fredoka', sans-serif;
    color: #3A1B04;
    font-size: 1.75rem;
    margin: 0;
}

.mm-admin__count {
    color: #6B4A2A;
    font-size: 0.95rem;
}

.mm-admin__panel {
    background: #FFFFFF;
    border: 1px solid #E4D4BE;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(60, 35, 10, 0.08);
}

.mm-admin__detail dl {
    display: grid;
    grid-template-columns: minmax(9rem, auto) 1fr;
    gap: 0.35rem 1rem;
    margin: 0;
}

.mm-admin__detail dt {
    color: #6B4A2A;
    font-size: 0.9rem;
}

.mm-admin__detail dd {
    margin: 0;
}

/* A grid row opens the detail screen (house rule), so show that it can be clicked. */
.mm-admin .k-grid .k-master-row {
    cursor: pointer;
}

.mm-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.25rem;
}

.mm-login__card {
    width: min(26rem, 100%);
    background: rgba(31, 11, 2, 0.85);
    border: 1px solid rgba(255, 232, 190, 0.3);
    border-radius: 22px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 18px 40px rgba(10, 5, 0, 0.55);
}

.mm-login__card h1 {
    font-size: 1.75rem;
    margin-top: 0;
}

.mm-login__field {
    margin: 1rem 0;
    text-align: left;
}

.mm-login__input {
    width: 100%;
    min-height: 48px;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 232, 190, 0.45);
    background: rgba(255, 243, 223, 0.96);
    color: var(--mm-night);
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
}
