﻿/* ------------------------------
            header
 ----------------------------- */
 #header-body {
    margin: 0 3vw;
}

#header-wrapper {
    padding: 1rem 0;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

#header-container {
    display: flex;
    height: 100%;
}

#header-logo {
    display: flex;
    margin: auto 5vw auto 3vw;
}

#header-logo > img {
    width: 100%;
    height: 32px;
    object-fit: contain;
}

#header-title {
    display: flex;
    align-items: center;
}

#header-title > span {
    font-size: 1rem;
    font-weight: normal;
    padding: 0.5rem 1rem;
    border-left-width: 1px;
    border-left-style: solid;
}

#header-wrapper, 
#header-title > span {
    color: var(--gray-color);
    border-color: var(--gray-light-color);
}

/* ------------------------------
             main
 ----------------------------- */
#main-body {
    display: flex;
    justify-content: center;
}

#main-wrapper {
    margin: 0 5vw;
    height: calc(100vh - 100px);
}

/* ------------------------------
           containers
 ----------------------------- */
.content {
    margin: 1.75vh 0;
}

.content-title {
    margin: 0;
    padding-top: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 300px;
    margin: 0 auto;
    padding: 1rem 3vw;
}

.register-summary-container {
    font-size: 14px;
}

.register-summary-container,
.logout-summary-container,
.logged-out-redirect-container {
    text-align: center;
    margin: 0.75em 0.25em;
}

.register-summary-container > a, 
.logged-out-redirect-container > a {
    font-weight: normal;
    vertical-align: inherit;
    color: var(--info-color);
}

.register-summary-container > a:hover,
.logged-out-redirect-container > a:hover {
    text-decoration: underline;
}

.error-container {
    margin: 0 auto;
    text-align: center;
    padding: 1.5em 3vw 3em 3vw;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.error-container {
    border-color: var(--gray-light-color);
}

/* ------------------------------
             qr-code
 ----------------------------- */
.qr-code-wrapper {
    text-align: center;
    padding-bottom: 1rem;
}

.qr-code-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1rem;
}

.qr-code {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    position: relative;
}

.qr-code-corner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.qr-code-corner.top-left {
    border-radius: 4px 0 0 0;
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
    top: 0;
    left: 0;
}

.qr-code-corner.top-right {
    border-radius: 0 4px 0 0;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    top: 0;
    right: 0;
}

.qr-code-corner.bottom-right {
    border-radius: 0 0 4px 0;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    bottom: 0;
    right: 0;
}

.qr-code-corner.bottom-left {
    border-radius: 0 0 0 4px;
    border-bottom: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
    bottom: 0;
    left: 0;
}

.qr-code-text {
    font-size: 14px;
    line-height: 20px;
    max-width: 210px;
    text-align: left;
    margin: 0 auto;
}

/* ------------------------------
        form, input etc.
 ----------------------------- */

.border-solid {
    width: inherit;
    border-bottom-width: 1px;
    border-top: 1px solid var(--gray-light-color);
}

.border-text {
    position: absolute;
    padding: 0 1em;
    font-size: 14px;
    color: var(--gray-color);
    background-color: white;
}

.field-validation-error {
    display: block;
    font-size: 14px;
    margin: 3px 0;
    padding: 0.1em 0.2em;
    color: var(--danger-color);
}

.error-message-display-none > a {
    display: none !important;
}

#error-message {
    display: block;
    font-size: 14px;
    text-align: center;
    color: var(--danger-color);
}

#error-message a {
    padding: 0 1em;
    margin-top: 0.75em;
    font-weight: normal;
    color: var(--danger-color);
}

#error-message a:hover {
    text-decoration: underline;
}

/* ------------------------------
           buttons
 ----------------------------- */
.btn {
    width: 100%;
    min-width: 10ch;
    line-height: 36px;
    border-radius: 4px;
    padding: 0.25em 0.75em;
    color: var(--gray-color);
    transition: 150ms ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-lg {
    font-size: 16px;
    line-height: 36px;
}

.btn-md {
    font-size: 14px;
    line-height: 34px;
}

.btn-sm {
    font-size: 12px;
    line-height: 32px;
}

.btn.success,
.btn.primary,
.btn.danger {
    color: var(--white-color);
    border-color: transparent;
}

.btn.success {
    background-color: var(--success-color);
}

.btn.primary {
    background-color: var(--primary-color);
}

.btn.primary:hover, .btn.primary:active {
    background-color: var(--primary-dark-color);
}

.btn.danger {
    background-color: var(--danger-color);
}

.btn.primary-outlined {
    color: var(--primary-color);
    background-color: transparent;
    border-color: var(--primary-color);
    border-width: 2px;
    border-style: solid;
}

.btn.secondary-outlined {
    color: var(--gray-color);
    background-color: transparent;
    border-color: var(--gray-color);
    border-width: 2px;
    border-style: solid;
}

.btn.secondary-outlined:hover, .btn.secondary-outlined:active {
    color: var(--white-color);
    background-color: var(--gray-color);
    border-color: transparent;
}

.btn.primary-outlined:hover, .btn.primary-outlined:active {
    color: var(--white-color);
    background-color: var(--primary-dark-color);
    border-color: transparent;
}

#start-bankid-app,
.btn.select-provider {
    text-decoration: none;
}

.error-text {
    line-height: 20px;
}

/* ------------------------------
            Spacing
 ----------------------------- */
.mb-sm {
    margin-bottom: 0.75em;
}

.mt-sm {
    margin-top: 0.75em;
}

.mt-md {
    margin-top: 1.5em;
}

/* ------------------------------
        Media queries
 ----------------------------- */

/* Common breakpoint for small size devices */
@media only screen and (min-width: 576px) {
    #header-body {
        margin: 0 5vw;
    }

    #header-logo {
        margin: auto 2vw auto 5vw;
    }

    .content {
        margin: 2vh 0;
    }

    .content-title {
        padding-top: 1rem;
    }
}

/* Common breakpoint for medium size devices */
@media only screen and (min-width: 768px) {
    #header-body {
        margin: 0 7vw;
    }

    .content {
        margin: 3vh 0;
    }
}