/* /Components/Pages/Login.razor.rz.scp.css */
/* The sign-in page: a brand panel (logo, tagline, texture) beside the form. The brand values are custom properties
   so an installation's white-label settings can replace the Neetrix defaults without touching the rules. Everything
   else comes from the design tokens (wwwroot/css/tokens.css). */

.login[b-nvr93mqxci] {
    /* The sign-in page keeps its own look: these hold it steady when the admin's tokens change. */
    --nx-chrome: #1E1E22;
    --nx-chrome-text: #CFCFD6;
    --nx-save: #1A7F1A;
    --nx-save-tint: #E1F1E1;
    --nx-well: #EFEFF2;
    --nx-surface: #FFFFFF;
    --nx-ink: #1E1E22;
    --nx-text: #2B2B30;
    --nx-text-muted: #62626B;
    --nx-field-line: #8E8E96;
    --nx-bad-ink: #9B1C1C;
    --nx-bad-tint: #FBE6E4;
    --nx-bad-edge: #EDB9B5;

    --login-panel: var(--nx-chrome);
    --login-tagline: var(--nx-chrome-text);
    --login-accent: var(--nx-save);
    --login-ring: var(--nx-save-tint);

    position: fixed;
    inset: 0;
    overflow: auto;
    display: flex;
    background: var(--nx-well);
    font-family: var(--nx-font);
    font-size: 14px;
    line-height: 1.43;
    color: var(--nx-text);
}

/* Brand panel */

.login-brand[b-nvr93mqxci] {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px;
    background: var(--login-panel);
}

.login-texture[b-nvr93mqxci] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.login-brand-content[b-nvr93mqxci] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.login-logo[b-nvr93mqxci] {
    display: block;
    max-width: 300px;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.login-tagline[b-nvr93mqxci] {
    margin: 0;
    max-width: 300px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--login-tagline);
}

/* Form panel */

.login-panel[b-nvr93mqxci] {
    flex: 0 0 520px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 64px 72px;
}

.login-form[b-nvr93mqxci] {
    width: 100%;
    max-width: 392px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-heading[b-nvr93mqxci] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.login-heading h1[b-nvr93mqxci] {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--nx-ink);
}

.login-heading p[b-nvr93mqxci] {
    margin: 0;
    font-size: 15px;
    color: var(--nx-text-muted);
}

.login-error[b-nvr93mqxci] {
    padding: 12px 14px;
    border: 1px solid var(--nx-bad-edge);
    border-radius: var(--nx-radius-control);
    background: var(--nx-bad-tint);
    color: var(--nx-bad-ink);
    font-weight: 600;
}

.login-field[b-nvr93mqxci] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label[b-nvr93mqxci],
.login-code legend[b-nvr93mqxci] {
    font-size: 14px;
    font-weight: 600;
    color: var(--nx-text);
}

.login-field input[b-nvr93mqxci],
.login-code input[b-nvr93mqxci] {
    box-sizing: border-box;
    font-family: inherit;
    color: var(--nx-ink);
    background: var(--nx-surface);
    border: 1px solid var(--nx-field-line);
    border-radius: var(--nx-radius-control);
    outline: none;
}

.login-field input[b-nvr93mqxci] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 15px;
}

.login-field input:focus[b-nvr93mqxci],
.login-code input:focus[b-nvr93mqxci] {
    border: 1.5px solid var(--login-accent);
    box-shadow: 0 0 0 4px var(--login-ring);
}

.login-options[b-nvr93mqxci] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 8px;
}

.login-remember[b-nvr93mqxci] {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.login-remember input[b-nvr93mqxci] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--login-accent);
}

.login a[b-nvr93mqxci] {
    font-size: 14px;
    font-weight: 500;
    color: var(--nx-text);
    text-decoration: underline;
}

.login a:hover[b-nvr93mqxci] {
    color: var(--nx-ink);
}

.login-submit[b-nvr93mqxci] {
    height: 50px;
    border: 0;
    border-radius: var(--nx-radius-control);
    background: var(--login-accent);
    color: var(--nx-text-on-solid);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.login-submit:disabled[b-nvr93mqxci] {
    opacity: 0.6;
    cursor: default;
}

.login-submit:focus-visible[b-nvr93mqxci],
.login a:focus-visible[b-nvr93mqxci],
.login-remember input:focus-visible[b-nvr93mqxci] {
    outline: 2px solid var(--login-accent);
    outline-offset: 3px;
}

.login-note[b-nvr93mqxci] {
    margin: 0;
    font-size: 13px;
    color: var(--nx-text-muted);
}

/* Two-step code */

.login-code[b-nvr93mqxci] {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-code legend[b-nvr93mqxci] {
    padding: 0;
    margin-bottom: 8px;
}

.login-code-boxes[b-nvr93mqxci] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-code input[b-nvr93mqxci] {
    width: 48px;
    height: 56px;
    padding: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.login-code-dash[b-nvr93mqxci] {
    width: 10px;
    height: 2px;
    background: var(--nx-field-line);
}

/* Tablet: the brand panel stacks above the form */

@media (max-width: 860px) {
    .login[b-nvr93mqxci] {
        flex-direction: column;
    }

    .login-brand[b-nvr93mqxci] {
        flex: 0 0 auto;
        min-height: 200px;
        padding: 32px;
    }

    .login-logo[b-nvr93mqxci] {
        max-height: 120px;
    }

    .login-panel[b-nvr93mqxci] {
        flex: 1 0 auto;
        padding: 48px 24px;
    }
}

/* Phone: the brand panel becomes a slim logo bar */

@media (max-width: 520px) {
    .login-brand[b-nvr93mqxci] {
        min-height: 0;
        padding: 16px 24px;
        justify-content: flex-start;
    }

    .login-tagline[b-nvr93mqxci] {
        display: none;
    }

    .login-logo[b-nvr93mqxci] {
        max-height: 48px;
        max-width: 180px;
    }

    .login-panel[b-nvr93mqxci] {
        justify-content: flex-start;
        padding: 32px 24px;
    }

    .login-code-boxes[b-nvr93mqxci] {
        gap: 6px;
    }

    .login-code input[b-nvr93mqxci] {
        width: 44px;
        height: 52px;
    }
}
