/* =====================================================================
   login-split.css - full-screen split sign-in page (Views/Account/Login.cshtml)
   Everything is scoped to .login-split (set by the view through ViewBag.SignInClass),
   so other pages on _LayoutSignIn keep main.css as it is.
   Left: "Constellation" panel - a live network (canvas, Scripts/SignInJs/login-constellation.js)
   behind a centred headline (.login100-more, hidden on phones). Right: the form, centred.
   PMCare palette: navy #005997 / #0079B9, blue #00ABEF; dashboard blues / teals #00355A, #0069B4, #13A3DE, #4BB3C0.
   ===================================================================== */

/* full screen: no grey frame around the card */
.container-login100:has(> .login-split) {
    padding: 0;
    background: #ffffff;
}

.wrap-login100.login-split {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
}

/* ---- constellation panel (left; markup order keeps the form first for screen readers) ---- */
.login-split .login100-more {
    flex: 0 0 58%;
    width: 58%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 600px at 20% 20%, #F2FAFE 0%, rgba(242, 250, 254, 0) 60%),
        linear-gradient(160deg, #F7FBFE, #E1F1FA);
}

.login-split .login100-more::before { display: none; }

.login-net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.login-copy {
    position: absolute;
    z-index: 1;
    inset: 0;
    padding: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

/* soft glow behind the words so the network lines never run through the headline */
.login-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(ellipse 58% 40% at 50% 50%, rgba(244, 250, 253, .95) 45%, rgba(244, 250, 253, 0) 100%);
}

.login-eyebrow {
    font-family: Poppins-SemiBold, Poppins-Medium, Poppins-Regular, sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2E7B84;
}

.login-headline {
    margin: 12px 0 14px;
    max-width: 640px;
    font-family: Poppins-SemiBold, Poppins-Bold, Poppins-Regular, sans-serif;
    font-size: clamp(34px, 4.1vw, 62px);
    line-height: 1.04;
    letter-spacing: -.025em;
    color: #00355A;
    text-wrap: balance;
}

.login-headline em {
    display: block;   /* the gradient half always starts its own line */
    font-style: normal;
    background: linear-gradient(90deg, #0069B4, #13A3DE 55%, #4BB3C0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-lede {
    margin: 0 auto 20px;
    max-width: 460px;
    font-family: Poppins-Regular, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #3d5670;
}

.login-modules {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: Poppins-Medium, Poppins-Regular, sans-serif;
    font-size: 12px;
    color: #3d5670;
}

.login-modules li { display: inline-flex; align-items: center; gap: 7px; }
.login-modules b { display: inline-block; border-radius: 50%; }
.login-modules .m1 { width: 7px; height: 7px; background: #39ACFF; }
.login-modules .m2 { width: 10px; height: 10px; background: #4BB3C0; }
.login-modules .m3 { width: 12px; height: 12px; background: #004F87; }
.login-modules .m4 { width: 7px; height: 7px; background: #E8308A; box-shadow: 0 0 6px #E8308A; }

/* ---- form column (right) ---- */
.login-split .login100-form {
    flex: 1 1 42%;
    width: 42%;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    box-shadow: -1px 0 0 #e6eef5;
    position: relative;
    z-index: 2;
}

.login-split .login100-form > * {
    width: 100%;
    max-width: 380px;
}

.login-head {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
}

.login-title {
    margin: 0 0 6px;
    font-family: Poppins-Bold, Poppins-Regular, sans-serif;
    font-size: 28px;
    line-height: 1.2;
    color: #0B3C64;
}

.login-subtitle {
    margin: 0;
    font-family: Poppins-Regular, sans-serif;
    font-size: 14px;
    color: #5b6b82;
}

/* "Your sign-in page had expired" note (AccountController.HandleLoginAntiForgeryError) */
.login-notice {
    margin: 0 0 18px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #BDE3FF;
    background: #E1F5FD;
    font-family: Poppins-Regular, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: #0B3C64;
}

/* ---- status pages: email sent, password changed, link expired (Views/Account/*Confirmation, ResetPasswordTokenExpired) ---- */
.login-status-icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    animation: login-pop .6s cubic-bezier(.2, .9, .3, 1.3) both .15s;
}
.login-status-icon svg { width: 32px; height: 32px; position: relative; z-index: 1; }
.login-status-icon::before,
.login-status-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: login-ripple 3.2s ease-out infinite 1s;
}
.login-status-icon::after { animation-delay: 2.6s; }
.login-status-icon.is-info { background: linear-gradient(140deg, #0069B4, #13A3DE); }
.login-status-icon.is-info::before, .login-status-icon.is-info::after { border-color: #13A3DE; }
.login-status-icon.is-success { background: linear-gradient(140deg, #0f9f6e, #10B981); }
.login-status-icon.is-success::before, .login-status-icon.is-success::after { border-color: #10B981; }
.login-status-icon.is-warning { background: linear-gradient(140deg, #d97706, #F59E0B); }
.login-status-icon.is-warning::before, .login-status-icon.is-warning::after { border-color: #F59E0B; }
@keyframes login-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes login-ripple { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.8); opacity: 0; } }

.login-strong { font-family: Poppins-Medium, Poppins-Regular, sans-serif; font-weight: normal; color: #0B3C64; word-break: break-word; }

.login-tips {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #F4F9FC;
    border: 1px solid #E1EDF5;
    list-style: none;
    display: grid;
    gap: 8px;
    font-family: Poppins-Regular, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #3d5670;
}
.login-tips li { position: relative; padding-left: 18px; }
.login-tips li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #13A3DE; }

/* a link that looks like the main button (status pages) */
.login-split a.login100-form-btn { display: flex; align-items: center; justify-content: center; width: 100%; color: #ffffff; text-decoration: none; }
.login-split a.login100-form-btn:hover { color: #ffffff; }

/* ---- first sign-in: change the temporary password (Views/Account/_ChangePasswordFirstLogin.cshtml) ---- */
.login-alert {
    margin: 0 0 18px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #FBD5D5;
    background: #FEF2F2;
    font-family: Poppins-Regular, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: #9b1c1c;
}

.login-field-error {
    display: block;
    margin: -12px 0 14px;
    font-family: Poppins-Regular, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #c81e1e;
    white-space: pre-line;   /* the model's password message uses line breaks */
}
.login-field-error.field-validation-valid { display: none; }
.login-split .wrap-input100:has(+ .field-validation-error) input.input100 { border-color: #EF4444; }

.pw-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    margin: -8px 0 18px;
    padding: 0;
    list-style: none;
    font-family: Poppins-Regular, sans-serif;
    font-size: 12px;
    color: #5b6b82;
}
.pw-rules li { display: flex; align-items: center; gap: 7px; transition: color .2s; }
.pw-rules li[data-rule="special"] { grid-column: 1 / -1; }
.pw-rules li::before {
    content: "";
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #c3cfdc;
    background: #ffffff center / 10px no-repeat;
    transition: background-color .2s, border-color .2s;
}
.pw-rules li.is-met { color: #0f7a55; }
.pw-rules li.is-met::before {
    border-color: #10B981;
    background-color: #10B981;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
@media (max-width: 420px) { .pw-rules { grid-template-columns: 1fr; } }

.login-label {
    display: block;
    margin: 0 0 6px;
    font-family: Poppins-Medium, Poppins-Regular, sans-serif;
    font-size: 13px;
    color: #1c273c;
}

/* ---- inputs ---- */
.login-split .wrap-input100 {
    border: 0;
    margin-bottom: 18px !important;
}

.login-split input.input100 {
    height: 48px;
    padding: 0 46px 0 44px;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: #ffffff;
    font-size: 14px;
    color: #1c273c;
    transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}

.login-split input.input100::placeholder { color: #9aa6b8; }

.login-split input.input100:focus {
    outline: none;
    border-color: #00ABEF;
    box-shadow: 0 0 0 4px rgba(0, 171, 239, .16);
}

/* the template's green focus frame is replaced by the ring above */
.login-split .focus-input100 { display: none; }

.login-split .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #7987a1;
    pointer-events: none;
    transition: color .2s, transform .25s;
}

.login-split .wrap-input100:focus-within .input-icon { color: #0079B9; transform: translateY(-50%) scale(1.12); }

.login-split .toggle-password {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 7px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #7987a1;
    cursor: pointer;
    transition: color .2s, background-color .2s;
}

.login-split .toggle-password svg { width: 20px; height: 20px; display: block; }
.login-split .toggle-password:hover,
.login-split .toggle-password.is-on { color: #0079B9; background: #E1F5FD; }
.login-split .toggle-password:focus-visible { outline: 2px solid #00ABEF; outline-offset: 1px; }

/* validation message (main.css draws it inside the input): keep it clear of the eye button */
.login-split .alert-validate::before {
    right: 48px;
    border-radius: 6px;
    font-size: 12px;
}
.login-split .alert-validate::after { display: none; }
.login-split .alert-validate input.input100 { border-color: #EF4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .14); }
.login-split .alert-validate .input-icon { color: #EF4444; }

/* ---- button ---- */
.login-split .container-login100-form-btn { margin-top: 6px; }

.login-split .login100-form-btn {
    position: relative;
    overflow: hidden;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #00355A;
    font-family: Poppins-Medium, Poppins-Regular, sans-serif;
    font-size: 14px;
    letter-spacing: .3px;
    text-transform: none;
    box-shadow: 0 8px 20px rgba(0, 53, 90, .25);
    transition: background .25s, transform .12s, box-shadow .25s;
}

/* light sweep on hover */
.login-split .login100-form-btn::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-18deg);
    transition: left .6s ease;
}

.login-split .login100-form-btn:hover { background: #0069B4; box-shadow: 0 12px 26px rgba(0, 53, 90, .25); }
.login-split .login100-form-btn:hover::after { left: 130%; }
.login-split .login100-form-btn:active { transform: scale(.985); }
.login-split .login100-form-btn:focus-visible { outline: 3px solid rgba(0, 171, 239, .45); outline-offset: 2px; }

.login-split .login100-form-btn .lbl { position: relative; transition: opacity .2s; }
.login-split .login100-form-btn .spin {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: login-spin .8s linear infinite;
}
.login-split .login100-form-btn.loading { cursor: progress; }
.login-split .login100-form-btn.loading .lbl { opacity: 0; }
.login-split .login100-form-btn.loading .spin { display: block; }

/* ---- links and footer ---- */
.login-links {
    margin-top: 22px;
    text-align: center;
}

.login-split .txt1 { color: #5b6b82; }
.login-split .txt2 { color: #0079B9; font-family: Poppins-Medium, Poppins-Regular, sans-serif; text-decoration: none; }
.login-split .txt2:hover { color: #005997; text-decoration: underline; }

.login-tagline {
    margin-top: 28px;
    text-align: center;
    font-size: 11px !important;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #0079B9 !important;
}

.login-footer {
    margin-top: 8px;
    text-align: center;
    font-size: 12px !important;
}

/* ---- motion: staggered entrance, shake on a failed submit ---- */
.login-split .login100-form > *,
.login-copy > * {
    animation: login-rise .75s cubic-bezier(.2, .8, .2, 1) both;
}
.login-split .login100-form > :nth-child(2) { animation-delay: .12s; }
.login-split .login100-form > :nth-child(3) { animation-delay: .22s; }
.login-split .login100-form > :nth-child(4) { animation-delay: .32s; }
.login-split .login100-form > :nth-child(5) { animation-delay: .40s; }
.login-split .login100-form > :nth-child(6) { animation-delay: .46s; }
.login-split .login100-form > :nth-child(7) { animation-delay: .52s; }
.login-copy > :nth-child(1) { animation-delay: .30s; }
.login-copy > :nth-child(2) { animation-delay: .40s; }
.login-copy > :nth-child(3) { animation-delay: .50s; }
.login-copy > :nth-child(4) { animation-delay: .60s; }

.login-split .login100-form.shake { animation: login-shake .42s cubic-bezier(.36, .07, .19, .97); }

@keyframes login-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes login-shake {
    15%, 85% { transform: translateX(-2px); }
    30%, 70% { transform: translateX(5px); }
    45%, 55% { transform: translateX(-7px); }
}
@keyframes login-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .login-split *, .login-split *::before, .login-split *::after { animation: none !important; transition: none !important; }
    .login-split .login100-form-btn .spin { border-top-color: rgba(255, 255, 255, .35); }
}

/* ---- responsive ---- */
@media (max-width: 1199px) {
    .login-split .login100-more { flex-basis: 50%; width: 50%; }
    .login-split .login100-form { flex-basis: 50%; width: 50%; }
    .login-copy { padding: 36px; }
}

@media (max-width: 767px) {
    .login-split .login100-more { display: none; }
    .login-split .login100-form {
        flex-basis: 100%;
        width: 100%;
        min-height: 100vh;
        padding: 40px 20px;
        box-shadow: none;
    }
}
