/*
 * Gilje.no-stil for innlogging, glemt passord, velg kontekst og feilsiden (lastes etter uncss.css).
 * Paletten er den samme som i varden-frontend/react/src/theme/giljePalette.ts (fra designmanualen). Poppins: SIL Open Font License 1.1.
 */
@font-face {
    font-family: Poppins;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/poppins-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: Poppins;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/poppins-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: Poppins;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/poppins-latin-600-normal.woff2') format('woff2');
}

:root {
    --gilje-blue: #00c0f3;
    --gilje-blue-tint3: #dcf2fd;
    --gilje-navy: #10284a;
    --gilje-beige: #f7dcba;
    --gilje-light-grey: #c7c7c7;
    --gilje-muted: #4a5b70;
    --gilje-error: #d03b31;
}

body.well-view {
    min-height: 100vh;
    margin: 0;
    /* «Bakgrunn 2» fra designmanualen (grafiske former), flatet ut mot Natthimmel. Mørk bakgrunn, så malene bruker
       den hvite logoen med blå fugl. Ikke `fixed`: iOS Safari tegner `fixed` + `cover` feil */
    background: var(--gilje-navy) url('images/gilje-bakgrunn.webp') center / cover no-repeat;
    color: #000;
    font-family: Poppins, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/* stripen øverst på www.gilje.no */
body.well-view::before {
    content: '';
    display: block;
    height: 6px;
    background: linear-gradient(90deg, var(--gilje-blue) 0%, var(--gilje-navy) 45%);
}

body.well-view .content-wrapper {
    max-width: 460px;
    margin: 0 auto;
    padding: 48px 16px;
}

body.well-view .logo-centered {
    display: block;
    height: 56px;
    width: auto;
    margin: 0 auto 32px;
}

body.well-view .content-well {
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 32px;
}

@media (max-width: 480px) {
    body.well-view .content-wrapper {
        padding-top: 32px;
    }
    body.well-view .content-well {
        padding: 24px 20px;
    }
}

body.well-view h1,
body.well-view h2,
body.well-view h3 {
    font-family: inherit;
    font-weight: 500;
    color: #000;
}

body.well-view label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #000;
}

body.well-view .form-group {
    margin-bottom: 20px;
}

body.well-view .form-control,
body.well-view .form-control.input-lg {
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 16px;
    color: #000;
    background: #fff;
    border: 1px solid var(--gilje-light-grey);
    border-radius: 0;
    box-shadow: none;
}
body.well-view .form-control:hover {
    border-color: var(--gilje-navy);
}
body.well-view .form-control:focus {
    border-color: var(--gilje-navy);
    outline: 2px solid var(--gilje-navy);
    outline-offset: 0;
}
body.well-view .form-control::placeholder {
    color: var(--gilje-muted);
}

body.well-view .btn {
    display: inline-block;
    box-sizing: border-box;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: var(--gilje-navy);
    border: 1px solid var(--gilje-navy);
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
}
body.well-view .btn-block {
    display: block;
    width: 100%;
    margin-top: 8px;
}
body.well-view .btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}
body.well-view .btn:hover,
body.well-view .btn:focus-visible {
    color: var(--gilje-navy);
    background: #fff;
}
body.well-view .btn:focus-visible {
    outline: 2px solid var(--gilje-navy);
    outline-offset: 2px;
}
body.well-view .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

body.well-view a:not(.btn) {
    color: var(--gilje-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.well-view .actions {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

body.well-view .alert {
    margin: 0 0 20px;
    padding: 12px 16px;
    border: 0;
    border-left: 4px solid var(--gilje-navy);
    border-radius: 0;
    font-size: 14px;
    color: var(--gilje-navy);
}
body.well-view .alert-info {
    background: var(--gilje-blue-tint3);
    border-left-color: var(--gilje-blue);
}
body.well-view .alert-warning {
    background: var(--gilje-beige);
}
body.well-view .alert-danger {
    background: #fbe9e7;
    border-left-color: var(--gilje-error);
    color: #8a1f17;
}

body.well-view .list-group {
    padding: 0;
    margin: 0 0 20px;
}
body.well-view .list-group-item {
    display: block;
    padding: 12px 16px;
    margin-bottom: -1px;
    border: 1px solid var(--gilje-light-grey);
    border-radius: 0;
    background: #fff;
    color: #000;
}
body.well-view a.list-group-item:hover {
    background: var(--gilje-blue-tint3);
}

/* rollevelgeren: hele raden er lenken, pilen står midt på høyre side */
body.well-view .list-group-item.context-item {
    padding: 0;
}
body.well-view .context-item > a {
    position: relative;
    display: block;
    padding: 14px 44px 14px 16px;
    color: #000;
    text-decoration: none;
}
body.well-view .context-item > a:hover,
body.well-view .context-item > a:focus-visible {
    background: var(--gilje-blue-tint3);
    color: var(--gilje-navy);
    outline: 0;
    box-shadow: inset 4px 0 0 var(--gilje-blue);
}
body.well-view .context-item > a svg {
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%);
    color: var(--gilje-navy);
}
body.well-view .panel .list-group {
    margin: 0;
}
body.well-view .panel .list-group-item:first-child {
    border-top: 0;
}
body.well-view .panel .list-group-item {
    border-left: 0;
    border-right: 0;
}
body.well-view .panel .list-group-item:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}
body.well-view .panel {
    border: 1px solid var(--gilje-light-grey);
    border-radius: 0;
    box-shadow: none;
}
body.well-view .note {
    color: var(--gilje-muted);
    font-size: 14px;
}
