/* The portal loads DM Sans globally; here it has to be pulled in explicitly.
   @import must stay at the very top of the file or browsers ignore it. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/*
 * Port of the portal's login.component.scss, without the Angular Material parts.
 * Colours taken from the portal's _tokens.scss.
 */
:root {
    --color-blue-brand: #0e2888;
    --color-black: #222222;
    --color-orange-brand: #FF4800;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "DM Sans", arial, sans-serif;
}


img {
    max-width: 100%;
}

section.login {
    width: 100vw;
    height: 100vh;
    display: flex;
    background: url('../imgv2/login_plenion.png') center center no-repeat;
    background-size: cover;
    align-items: center;
    justify-content: center;
}

section.login .log-form {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

section.login .log-form #img {
    margin-bottom: 20px;
}

section.login .log-form .log-form-cont {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 45px 20px 20px;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    min-width: 290px;
    width: 100%;
    max-width: 360px;
}

.buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.login-button {
    width: 100%;
    border-radius: 1px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
    transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
    background-color: #fff;
    color: #262626;
    cursor: pointer;
    outline: none;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    margin: auto;
    display: block;
    text-decoration: none;
}

.login-button:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.button-blue {
    height: 50px;
    background-color: var(--color-blue-brand);
    border: none;
    color: #fff;
    border-radius: 100px;
}

.button-dark {
    height: 50px;
    background-color: var(--color-black);
    border: none;
    color: #fff;
    border-radius: 100px;
}

.button-plenion {
    height: 50px;
    background-color: var(--color-orange-brand);
    border: none;
    color: #fff;
    border-radius: 100px;
}

.button-wrapper {
    border: 1px solid transparent;
    height: 100%;
    width: 100%;
}

.button-wrapper .button-icon {
    padding: 15px;
    background-color: #fff;
    float: left;
    border-radius: 100px 0 0 100px;
}

.button-wrapper .button-icon .button-icon-svg-container {
    width: 18px;
    height: 18px;
    line-height: 14px;
    color: #fff;
}

.button-wrapper .button-text-container {
    display: flex;
    flex-grow: 1;
    align-items: center;
    margin-left: 60px;
    margin-right: 10px;
    text-align: left;
}

.button-wrapper .button-text-container .button-text {
    font-size: 16px;
    line-height: 48px;
    letter-spacing: 0.21px;
    font-weight: 500;
    color: #fff;
}

@media (max-width: 575px) {
    section.login {
        align-items: flex-start;
        padding-top: 50px;
    }
}

/* --- Language selector and copyright ---------------------------------- */

.input-and-language {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.dropdown-language-container {
    position: relative;
    display: flex;
    width: 67px;
    height: 32px;
    padding: 4px 4px 4px 12px;
    justify-content: flex-end;
    align-items: center;
    border-radius: 4px;
    margin-top: 20px;
    border: 1px solid #eef0f7;
}

#language-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    color: #9c9ca8;
}

#language-dropdown span {
    color: #9c9ca8;
    font-size: 16px;
}

#language-dropdown svg {
    margin-left: 5px;
}

/* Opens on hover instead of on click: no JS needed for three links. */
.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    min-width: 140px;
    z-index: 10;
}

.dropdown-language-container:hover .language-menu,
.language-menu:hover {
    display: block;
}

.language-menu a {
    display: block;
    padding: 12px 16px;
    color: #222222;
    text-decoration: none;
    font-size: 14px;
}

.language-menu a:hover {
    background: #eef0f7;
}

#copyright {
    margin-top: 10px;
    text-align: center;
    color: #fff;
    font-size: 13px;
    line-height: 20px;
}

#copyright a {
    color: #fff;
}