/* ==========================================================================
   Auth.css — Sign In + Login Unit screens.
   Pure CSS step navigation (no JS/C#) using :target, in keeping with the
   app's CSS-only interaction pattern.
   ========================================================================== */
/*.app-sidebar{
    display:none;
}*/


.auth-page {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    
}

.auth-card {
    width: 100%;
    max-width: 468px;
    padding: 32px 36px 34px;
/*    box-shadow: var(--shadow-lg);*/
    position: relative;
}

/* ---- Brand ---- */

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.auth-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 18px;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

    .auth-brand-text .name {
        font-weight: 800;
        font-size: 16.5px;
        color: var(--text);
    }

        .auth-brand-text .name span {
            color: var(--primary);
        }

    .auth-brand-text .sub {
        font-size: 10.5px;
        color: var(--text-3);
        font-weight: 600;
        letter-spacing: .06em;
        margin-top: 3px;
    }

/* ---- Step panels (pure CSS :target toggle) ---- */

/*.auth-panel {
    display: none;
}

#signin:target,
.auth-card:not(:has(.auth-panel:target)) #signin {
    display: block;
}

#loginunit:target {
    display: block;
}
*/

.auth-toggle {
    display: none;
}

.auth-panel {
    display: none;
}

#step1:checked ~ .auth-page .signin-panel {
    display: block;
}

#step2:checked ~ .auth-page .login-panel {
    display: block;
}

.auth-submit-btn,
.auth-back-link {
    cursor: pointer;
}

.auth-panel-inner {
    display: flex;
    gap: 20px;
}

.auth-accent-bar {
    width: 3px;
    flex: 0 0 auto;
    align-self: stretch;
    min-height: 210px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.auth-panel-body {
    flex: 1;
    min-width: 0;
}

.auth-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--primary);
    margin-bottom: 6px;
}

.auth-title {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 23px;
    letter-spacing: -.02em;
    color: var(--text);
    margin: 0 0 22px;
}
    .auth-title:focus-visible {
        outline: none;
    }
/* ---- Fields ---- */

.auth-field {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

    .auth-field label {
        width: 110px;
        flex: 0 0 auto;
        text-align: right;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--text-2);
    }

.auth-ctl-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .auth-ctl-wrap .erp-ctl {
        height: 40px;
    }

.auth-inline-hint {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--danger);
    white-space: nowrap;
}

.auth-ctl-highlight {
    background: var(--blue-soft);
    border-color: var(--blue);
    color: var(--text);
    font-weight: 700;
}

/* ---- Change password link ---- */

.auth-forgot-row {
    text-align: end;
    margin: 4px 0 24px;
}

.auth-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

    .auth-link:hover {
        color: var(--primary-2);
    }

/* ---- Actions ---- */

.auth-submit-row {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 14px;
    margin-top: 8px;
}

.auth-submit-btn {
    min-width: 150px;
    justify-content: center;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-2);
    text-decoration: none;
    margin-right: auto;
}

    .auth-back-link:hover {
        color: var(--text);
    }

/* ---- Date row (Login Unit step) ---- */

.auth-date-wrap {
    position: relative;
}

.auth-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    flex: 0 0 auto;
    font-size: 14px;
}

.auth-check-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(14, 124, 97, .3);
}

/* ---- Footer note ---- */

.auth-footnote {
    text-align: center;
    margin-top: 22px;
    font-size: 11px;
    color: var(--text-3);
}

@media (max-width: 560px) {
    .auth-card {
        padding: 26px 20px 28px;
    }

    .auth-accent-bar {
        display: none;
    }

    .auth-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

        .auth-field label {
            width: auto;
            text-align: left;
        }

    .auth-ctl-wrap {
        width: 100%;
    }
}
