/* Login-only experience. This file is intentionally not included by app layouts. */
:root {
    --login-font-family: var(--plm-font-family);
    --login-font-heading: var(--plm-font-family);
    --login-ink: #f8fbff;
    --login-muted: rgba(235, 242, 255, .72);
    --login-line: rgba(255, 255, 255, .22);
    --login-blue: #5f8cff;
}

html.login-page,
html.login-page body,
.login-page,
.login-page *,
.login-page *::before,
.login-page *::after {
    font-family: var(--plm-font-family) !important;
}

html, h6, h5, h4, h3, h2, h1, input:not(#filterNavigateMenu), textarea:not(#filterNavigateMenu), optgroup:not(#filterNavigateMenu), select:not(#filterNavigateMenu), .select2-selection:not(#filterNavigateMenu), body, article, aside, details, figcaption, figure, footer, hgroup, main, menu, section, summary, button {
    font-family: var(--plm-font-family) !important;
    font-size: 14px;
}

html.login-page,
html.login-page body {
    font-family: var(--login-font-family);
    letter-spacing: 0.02em;
    height: 100%;
    margin: 0;
}

.login-page body {
    background: #0a1730;
    color: var(--login-ink);
    display: block;
    min-height: 100%;
    overflow: hidden;
}

.login-scene {
    align-items: center;
    display: flex;
    height: 100vh;
    justify-content: center;
    min-height: 620px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.login-slide,
.login-scene:after {
    inset: 0;
    position: absolute;
}

.login-slide {
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.4s ease, transform 7s ease;
    z-index: -3;
}

.login-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.login-scene:before {
    background: linear-gradient(115deg, rgba(6, 19, 46, .93) 0%, rgba(12, 38, 85, .68) 48%, rgba(5, 15, 32, .45) 100%);
    content: "";
    inset: 0;
    position: absolute;
    z-index: -2;
}

.login-scene:after {
    background: radial-gradient(circle at 78% 20%, rgba(95, 140, 255, .24), transparent 32%), linear-gradient(transparent 70%, rgba(3, 10, 24, .4));
    content: "";
    z-index: -1;
}

.login-layout {
    align-items: center;
    display: grid;
    gap: clamp(32px, 7vw, 110px);
    grid-template-columns: minmax(280px, 470px) minmax(300px, 440px);
    padding: 32px;
    width: min(1120px, 100%);
    z-index: 1;
}

.login-intro {
    animation: login-rise .8s ease both;
    color: var(--login-ink);
}

.login-brand {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 30px;
}

.login-brand img {
    /*filter: brightness(0) invert(1);*/
    height: 52px;
    width: auto;
}

.login-brand-label {
    border-left: 1px solid rgba(255, 255, 255, .35);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.6;
    padding-left: 14px;
    text-transform: uppercase;
}

.login-intro h1 {
    font-family: var(--login-font-heading);
    color: #fff;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.04;
    margin: 0 0 20px;
}

.login-intro p {
    color: var(--login-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    max-width: 410px;
}

.login-caption {
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    letter-spacing: .12em;
    margin-top: 46px;
    text-transform: uppercase;
}

.login-card {
    animation: login-rise .8s .12s ease both;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
    backdrop-filter: blur(20px);
    padding: clamp(28px, 5vw, 44px);
}

.login-card h2 {
    color: #fff;
    font-size: 27px;
    margin: 0 0 8px;
}

.login-card > p {
    color: var(--login-muted);
    margin: 0 0 28px;
}

.login-field {
    margin-bottom: 18px;
    position: relative;
}

.login-field label {
    color: rgba(255, 255, 255, .78) !important;
    display: block;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.login-field input {
    background: rgba(255, 255, 255, .1) !important;
    border: 1px solid var(--login-line) !important;
    border-radius: 11px !important;
    box-sizing: border-box;
    color: #fff !important;
    font-size: 14px !important;
    height: 48px;
    outline: 0;
    padding: 0 15px;
    width: 100%;
}

.login-field input::placeholder { color: rgba(255, 255, 255, .48); }
.login-field input:focus {
    background: #fff !important;
    border-color: #a8c1ff !important;
    box-shadow: 0 0 0 3px rgba(95, 140, 255, .2) !important;
    color: #0a1730 !important;
}
.login-field input:focus::placeholder { color: rgba(10, 23, 48, .45) !important; }
.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0a1730 !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.login-password-wrap { position: relative; }
.login-password-wrap input { padding-right: 46px; }

.login-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, .72);
    cursor: pointer;
    display: flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
}

.login-password-toggle:hover,
.login-password-toggle:focus {
    color: #fff;
    outline: 0;
}

.login-password-wrap:focus-within .login-password-toggle {
    color: rgba(10, 23, 48, .55);
}

.login-password-wrap:focus-within .login-password-toggle:hover,
.login-password-wrap:focus-within .login-password-toggle:focus {
    color: #0a1730;
}

.login-password-toggle svg {
    display: none;
    pointer-events: none;
}

.login-password-toggle .icon-eye.is-active {
    display: block;
}

.login-password-toggle .icon-eye-off.is-active {
    display: block;
}

.captcha-row {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-img {
    background: #fff;
    border: 1px solid var(--login-line);
    border-radius: 11px;
    display: block;
    height: 44px;
    width: 130px;
}

.captcha-refresh {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid var(--login-line);
    border-radius: 10px;
    color: rgba(255, 255, 255, .8);
    cursor: pointer;
    display: flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 40px;
}

.captcha-refresh:hover,
.captcha-refresh:focus {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    outline: 0;
}

.login-error {
    color: #ffd0d5;
    display: block;
    font-size: 12px;
    margin-top: 7px;
}

.login-options {
    align-items: center;
    color: var(--login-muted);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    margin: 5px 0 24px;
}

.login-options label { color: var(--login-muted) !important; font-size: 12px !important; font-weight: 400 !important; margin: 0; text-transform: none; }
.login-options input { accent-color: var(--login-blue); margin-right: 6px; vertical-align: -2px; }
.login-options a { color: #d4e0ff; }

.login-submit {
    background: linear-gradient(135deg, #6f96ff, #3565db) !important;
    border: 0 !important;
    border-radius: 11px !important;
    box-shadow: 0 10px 24px rgba(24, 66, 170, .38);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    height: 48px;
    width: 100% !important;
}

.login-submit:hover { box-shadow: 0 13px 28px rgba(24, 66, 170, .52); transform: translateY(-2px); }
.login-foot { color: rgba(255, 255, 255, .5); font-size: 11px; margin: 24px 0 0; text-align: center; }

.login-dots { bottom: 30px; display: flex; gap: 8px; left: 32px; position: absolute; z-index: 2; }
.login-dot { background: rgba(255, 255, 255, .45); border: 0; border-radius: 50%; cursor: pointer; height: 7px; padding: 0; transition: width .3s ease, background .3s ease; width: 7px; }
.login-dot.is-active { background: #fff; border-radius: 6px; width: 26px; }

@keyframes login-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 800px) {
    .login-scene { min-height: 100vh; overflow-y: auto; }
    .login-layout { display: block; max-width: 480px; padding: 34px 20px 70px; }
    .login-intro { margin-bottom: 28px; text-align: center; }
    .login-brand { justify-content: center; margin-bottom: 22px; }
    .login-intro h1 { font-size: 40px; }
    .login-intro p { font-size: 14px; margin: auto; }
    .login-caption { display: none; }
    .login-dots { bottom: 18px; left: 50%; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .login-slide, .login-intro, .login-card { animation: none; transition: none; transform: none; }
}
