@import url('../../public/fonts/Open_Sans/open_sans.css');

html, body {
    margin: 0;
    border: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    background: url('../imgs/hand-picto.svg') left bottom/40% auto no-repeat, #E5EFFF;
    color: #333333;
    font-family: 'Open Sans', sans-serif;
    display: flex;
    width: 100%;
}

* {
    box-sizing: border-box;
}

.login-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.language-selector {
    padding: 0.5rem;
    border-radius: 0.25rem;
    background: #fff;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin: 4.8125rem 5rem 0 0;
}

.language-selector .separator {
    border-radius: 0.0625rem;
    width: 0.125rem;
    height: 100%;
    background: #0045AD;
}

.language-selector > button {
    width: 2rem;
    height: 2rem;
    text-transform: uppercase;
    background: transparent;
    padding: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    border: 0 solid transparent;
    cursor: pointer;
    color: #0045AD;
    transition: all 0.2s;
}

.language-selector > button:hover {
    color: #5C9DFF;
    font-weight: 700;
}

.language-selector > button[selected] {
    font-weight: 700;
}

.brand-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.logo {
    max-width: 28rem;
    width: 90%;
}

.logo img {
    width: 100%;
}

.quote {
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 300;
    text-align: center;
    max-width: 23rem;
}

.login-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 5rem;
    padding: 0 5rem;
    margin-top: 3.875rem;
    flex: 1;
}

.login-form-column .logo {
    display: none;
    width: 100%;
    max-width: none;
    justify-content: center;
}

.login-form-column .logo img {
    max-width: 23rem;
    width: max(min(100%, calc(75vh - 20rem)), 10rem);
}

.login-form-column {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    margin-top: 5.75rem;
    margin-bottom: 5.75rem;
}

.login-form {
    width: 100%;
    max-width: 25rem;
    background: #fff;
    box-shadow: 0.25rem 0.25rem 0.25rem rgba(0, 53, 133, 0.25);
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.catchphrase {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 400;
    font-family: inherit;
}

.input-wrapper {
    width: 100%;
    position: relative;
    border-radius: 0.5rem;
    background: #E5EFFF;
    display: flex;
    flex-direction: row;
}

.input-wrapper .input-icon-button {
    display: flex;
    padding: 0.5rem;
    background: transparent;
    border: 0 solid transparent;
    cursor: pointer;
    align-items: center;
    width: 2.5rem;
    font-size: 1rem;
}

.input-wrapper .input-icon-button > svg {
    width: 100%;
    height: 100%;
}

input {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 0px solid transparent;
    border-radius: 0.5rem;
    background: #E5EFFF;
    font-size: 0.875rem;
    min-height: 2.5rem;
    font-family: inherit;
}

.input-wrapper input {
    background: transparent;
    flex: 1;
}

.form-btns-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-btns-group .btn {
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    border: 1px solid #C1BBCA;
    background: transparent;
    color: #0045AD;
    padding: 4px 12px;
}

.form-btns-group .btn:hover {
    background: #E5EFFF;
}

.form-btns-group .btn.provider::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    background: var(--provider-icon) no-repeat;
    background-size: 100%;
    margin-right: 6px;
}

.btn {
    background: #0045AD;
    color: #fff;
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 700;
    border: 0.0625rem solid #0045AD;
    text-align: center;
    text-decoration: none;
    cursor: pointer;

    transition: all 0.2s;
}
.btn.btn-secondary {
    background: #B7D4FF;
    border-color: #B7D4FF;
    color: #0045AD;
}

.btn:hover, .btn:active {
    border-color: currentColor;
}

.btn:active {
    color: #B7D4FF;
}

.btn.btn-secondary:active {
    color: #fff;
}

.btn:disabled {
    background: #fff;
    border: 0.0625em solid #999999;
    color: #999999;
    pointer-events: none;
}

.form-help {
    white-space: pre-line;
    font-size: 0.875rem;
}

.form-help a {
    color: inherit;
    text-decoration: underline;
    font-weight: 300;
}

.form-or {
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.form-or span {
    padding: 0 12px;
}

.form-or::before, .form-or::after {
    content: ' ';
    flex: 1;
    display: block;
    background: #C1BBCA;
    width: auto;
    height: 1px;
}

.watermark {
    font-size: 0.75rem;
    text-align: center;
    color: #5C9DFF;
}

.error {
    color: #FF5C00;
    font-weight: 700;
    font-size: 0.875rem;
    margin: 0;
}

footer {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    font-size: 0.75rem;
}

footer a {
    color: #0066FF;
    text-decoration: none;
}

.right {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

#documents .document:not(:last-child):after {
    content: ' · ';
}

@media screen and (max-width: 1200px) {
    body {
        background: url('../imgs/hand-picto.svg') left bottom/60% auto no-repeat, #E5EFFF;
    }
    .login-row {
        grid-template-columns: repeat(1, 1fr);
        padding: 0;
        margin-top: 0;
    }

    .login-form-column .logo {
        display: flex;
    }

    .brand-column {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    body {
        background: url('../imgs/hand-picto.svg') left bottom/70% auto no-repeat, #E5EFFF;
    }
}

@media screen and (max-height: 1000px), screen and (max-width: 600px) {
    .language-selector {
        margin: 1rem 1rem 0 0;
    }

    .login-form-column {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}
@media screen and (max-height: 800px), screen and (max-width: 300px) {
    .login-form-column {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}
