/*
 * Medlemspass base styles. Don't edit this to restyle a deployment: a theme
 * redefines the variables below in its own theme/theme.css, which is loaded
 * after this file. See README, "Theming".
 */
:root {
    --mp-color-primary: #2d5bd7;
    --mp-color-primary-hover: #2148b0;
    --mp-color-on-primary: #fff;
    --mp-color-text: #222;
    --mp-color-muted: #666;
    --mp-color-bg: #fff;
    --mp-color-surface: #f5f6f8;
    --mp-color-border: #ccd;
    --mp-color-error: #b00;

    --mp-font-body: system-ui, sans-serif;
    --mp-font-heading: var(--mp-font-body);
    --mp-font-size: 1rem;

    --mp-radius: .25rem;
    --mp-max-width: 32rem;
    --mp-logo-height: 2.5rem;
}

body {
    font-family: var(--mp-font-body);
    font-size: var(--mp-font-size);
    color: var(--mp-color-text);
    background: var(--mp-color-bg);
    max-width: var(--mp-max-width);
    margin: 3rem auto;
    padding: 0 1rem;
}

h1, h2, h3 { font-family: var(--mp-font-heading); }
h1 { font-size: 1.5rem; }
a { color: var(--mp-color-primary); }

.site-header { margin-bottom: 1.5rem; }
.site-header a { color: inherit; text-decoration: none; }
.site-logo { display: block; height: var(--mp-logo-height); width: auto; }
.site-footer { margin-top: 3rem; color: var(--mp-color-muted); font-size: .875em; }

label { display: block; margin-top: .75rem; }
input[type=text], input[type=password], input[type=email], select {
    width: 100%;
    padding: .5rem;
    box-sizing: border-box;
    border: 1px solid var(--mp-color-border);
    border-radius: var(--mp-radius);
    font: inherit;
}

button, input[type=submit] {
    margin-top: 1rem;
    padding: .5rem 1rem;
    cursor: pointer;
    font: inherit;
    color: var(--mp-color-on-primary);
    background: var(--mp-color-primary);
    border: 1px solid var(--mp-color-primary);
    border-radius: var(--mp-radius);
}
button:hover, input[type=submit]:hover {
    background: var(--mp-color-primary-hover);
    border-color: var(--mp-color-primary-hover);
}
/* django-oauth-toolkit's consent page: "Cancel" is .btn, "Authorize" .btn.btn-primary. */
.btn:not(.btn-primary), .btn:not(.btn-primary):hover {
    color: var(--mp-color-primary);
    background: transparent;
}

button.secondary, button.secondary:hover {
    color: var(--mp-color-primary);
    background: transparent;
}

.errorlist { color: var(--mp-color-error); }

/* Login */
.login-note { color: var(--mp-color-muted); font-size: .875em; }
.login-divider { margin: 2rem 0 1rem; border: 0; border-top: 1px solid var(--mp-color-border); }
.login-bankid { display: block; width: 100%; }
.bankid-message { min-height: 1.5em; }
/* Black on white whatever the theme, with a quiet zone: the QR code must scan. */
.bankid-qr { width: 12rem; max-width: 100%; margin: 1rem auto; background: #fff; }
.bankid-qr svg { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
dl dt { font-weight: bold; margin-top: .5rem; }
