/*
 * DIK – from "Grafisk profil DIK" version 2.0 (2023-01-12).
 *
 * Primary colours:
 *   Dark Blue   #101584   the dot over the i, gradients
 *   Blue        #3D53A8   main background colour and headings
 *   Blue Light  #ABADE1   backgrounds, illustrations
 *   Peach       #FF7A67   CTA/accent, quote backgrounds
 *   Peach Light #ECC3B6   main headings (on Blue), backgrounds
 *   Pale        #EBEDF1   backgrounds, illustrations
 *
 * Headings go in Blue on light backgrounds. Buttons use Blue rather than
 * Peach: white text on Peach is too low contrast for a button label.
 *
 * Fonts: the profile uses Lota Grotesque (Bold for headings, Semibold for
 * lead text, Regular for body text). It's a commercial font; once DIK
 * provides web licensed .woff2 files, put them in fonts/, declare them with
 * @font-face and add "Lota Grotesque" first in the stacks below.
 */
:root {
    --dik-dark-blue: #101584;
    --dik-blue: #3d53a8;
    --dik-blue-light: #abade1;
    --dik-peach: #ff7a67;
    --dik-peach-light: #ecc3b6;
    --dik-pale: #ebedf1;

    --mp-color-primary: var(--dik-blue);
    --mp-color-primary-hover: var(--dik-dark-blue);
    --mp-color-on-primary: #fff;
    --mp-color-text: #1a1a2e;
    --mp-color-muted: #555a70;
    --mp-color-bg: var(--dik-pale);
    --mp-color-surface: #fff;
    --mp-color-border: var(--dik-blue-light);

    --mp-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mp-font-heading: var(--mp-font-body);

    --mp-radius: 0.5rem;
    --mp-max-width: 30rem;
    --mp-logo-height: 3.5rem;
}

* {
    box-sizing: border-box;
}

h1,
h2,
h3 {
    color: var(--dik-blue);
    font-weight: 700;
}
h2 {
    font-size: 1.125rem;
}

header {
    width: 100%;
    max-width: 480px;
    margin-bottom: 1rem !important;
}

footer {
    width: 100%;
    max-width: 480px;
    color: #fff;
}

/* The content on a white card on Pale. */
main {
    background: var(--mp-color-surface);
    border-radius: var(--mp-radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 480px;
}
main > h1:first-child {
    margin-top: 0;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--dik-peach);
    outline-offset: 2px;
}

body {
    max-width: unset;
    padding: 0;
    margin: 0;
}

.full-page {
    min-height: 100vh;
    background-color: var(--dik-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Extra room at the bottom for the chevron. */
    padding: 1rem 1rem 4.5rem;
    position: relative;
}

/* Down chevron at the bottom of the first screen, linking to the about section. */
.more-info {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    padding: 0.25rem;
    border-radius: 50%;
    color: var(--dik-pale);
}
.more-info:hover {
    color: #fff;
}
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

header {
    display: flex;
    gap: 2rem;
    .dik-logo {
        width: 100px;
        fill: #fff;
        flex-shrink: 0;
    }
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.tagline {
    color: var(--dik-pale);
    font-weight: 600;
    line-height: 1.3;
}

/* About the login service, below the login card: a narrow centered column. */
.about {
    /* The card's width plus the page gutter on each side, with the text inset
       like the card's content, so the two line up at every screen width. */
    max-width: calc(480px + 2rem);
    margin: 0 auto;
    padding: 3rem calc(1rem + 1.5rem);
    line-height: 1.6;
}
.about h2 {
    font-size: 1.5rem;
    margin-top: 0;
}

/* Pill-shaped buttons. */
button,
input[type="submit"] {
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Login: a large BankID button. */
.login-bankid {
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 1.0625rem;
}
