/*
 * PivotLab: the account screens (views/pages signin, signup, password_request, password_reset) -
 * the old layouts/auth.php split screen and the scoped styles of the old components/form_*.php.
 * Everything under [data-pl-view="account"], which is the .split root (partials/session.php,
 * plAuthOpen). The photo is set on .view-auth by the view (assets/img/app/splash_img.jpg).
 */

[data-pl-view="account"].split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    min-height: 100%;
    position: relative;
}

[data-pl-view="account"] h1 {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 21px;
}

[data-pl-view="account"] .lang-switcher {
    position: absolute;
    top: 16px;
    right: 16px;
}

[data-pl-view="account"] .lang-switcher button:hover,
[data-pl-view="account"] .lang-switcher button:active,
[data-pl-view="account"] .lang-switcher button:focus {
    border-color: transparent !important;
}

[data-pl-view="account"] .view-auth {
    height: 100%;
    background-position: center 90%;
    background-size: cover;
    position: relative;
}

[data-pl-view="account"] .view-auth_overlay {
    background: linear-gradient(180deg, rgba(14, 23, 39, 0) 0%, #858585 100%);
    height: 100%;
    mix-blend-mode: overlay;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

[data-pl-view="account"] .logo {
    max-width: 200px;
    width: 100%;
    padding: 16px;
}

/* the old layout's <main> - a div here, the shell already wraps the page in <main> */
[data-pl-view="account"] .split-main {
    z-index: 999;
}

[data-pl-view="account"] .split-main .container {
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
    overflow-y: auto;
}

[data-pl-view="account"] .split-main .container > form {
    width: 100%;
}

[data-pl-view="account"] .form-label {
    font-size: .8rem;
    margin-bottom: .4rem;
}

[data-pl-view="account"] .label {
    font-size: .8rem;
}

/* the old inputPassword(): the eye / eye-off toggle */
[data-pl-view="account"] .input-password,
[data-pl-view="profile"] .input-password {
    position: relative;
}

[data-pl-view="account"] .input-password input,
[data-pl-view="profile"] .input-password input {
    padding-right: 42px;
}

[data-pl-view="account"] .input-password .toggle,
[data-pl-view="profile"] .input-password .toggle {
    position: absolute;
    top: 20px;
    right: 16px;
    line-height: 0;
    cursor: pointer;
    z-index: 5;
}

[data-pl-view="account"] .input-password.show .eye-view,
[data-pl-view="account"] .input-password:not(.show) .eye-hide,
[data-pl-view="profile"] .input-password.show .eye-view,
[data-pl-view="profile"] .input-password:not(.show) .eye-hide {
    display: none;
}

@media (max-width: 767px) {
    [data-pl-view="account"].split {
        grid-template-columns: 1fr;
    }

    [data-pl-view="account"] .split-main {
        position: fixed;
        bottom: 0;
        background: #ffffffba;
        backdrop-filter: blur(8px);
        width: 100%;
        max-height: 100%;
        border-radius: 32px 32px 0 0;
        overflow-y: auto;
    }
}
