/* Staff login — separate from Digits portal */
.ls-auth-layout--staff {
    grid-template-columns: minmax(280px, 1fr) minmax(340px, 480px);
}

.ls-auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

body.ls-staff-login-page .ls-auth-form-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.ls-auth-digits-slot {
    width: 100%;
}

.ls-auth-digits-slot__hint {
    display: none;
}

body.ls-portal-login-page .digits-form_container {
    margin: 0 auto !important;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

.ls-auth-hero__switch {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.ls-auth-hero__switch a {
    color: #fecaca;
    font-weight: 700;
    text-decoration: underline;
}

body.ls-staff-login-page .ls-auth-hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

body.ls-staff-login-page .ls-auth-hero__badge {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
}

.ls-staff-login {
    width: 100%;
    max-width: 440px;
}

.ls-staff-login__header {
    text-align: center;
    margin-bottom: 1.35rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ls-staff-login__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.75rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.2);
}

.ls-staff-login__title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.ls-staff-login__subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

.ls-staff-login__tabs,
.ls-staff-login__method {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.ls-staff-login__method-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: #475569;
    transition: all 0.15s ease;
}

.ls-staff-login__method-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.ls-staff-login__method-btn.is-active {
    border-color: #111827;
    color: #111827;
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px #111827;
}

.ls-staff-field[hidden] {
    display: none !important;
}

.ls-staff-login__tab {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.75rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    color: #334155;
    transition: all 0.15s ease;
}

.ls-staff-login__tab:hover {
    border-color: #94a3b8;
}

.ls-staff-login__tab.is-active {
    background: #111827;
    border-color: #111827;
    color: #fff;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.22);
}

.ls-staff-login__hint {
    margin: 0 0 1.1rem;
    font-size: 0.86rem;
    color: #64748b;
    text-align: center;
    line-height: 1.55;
}

.ls-staff-login__hint[hidden] {
    display: none !important;
}

.ls-staff-login .ls-portal-field {
    margin-bottom: 1rem;
}

.ls-staff-login .ls-portal-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.ls-staff-login .ls-portal-field input {
    width: 100%;
    box-sizing: border-box;
    min-height: 3rem;
    padding: 0.85rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font: inherit;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ls-staff-login .ls-portal-field input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.ls-staff-login .ls-portal-form-message {
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
}

.ls-staff-login .ls-portal-submit {
    width: 100%;
    min-height: 3rem;
    margin-top: 0.35rem;
    padding: 0.9rem 1.25rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ls-staff-login .ls-portal-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.32);
}

.ls-staff-login .ls-portal-submit:disabled {
    opacity: 0.75;
    cursor: wait;
}

.ls-staff-login__footer {
    margin: 1.35rem 0 0;
    padding-top: 1rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.1);
    text-align: center;
    font-size: 0.88rem;
}

.ls-staff-login__footer a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

.ls-staff-login__footer a:hover {
    color: #dc2626;
}

@media (max-width: 900px) {
    .ls-auth-layout--portal,
    .ls-auth-layout--staff {
        grid-template-columns: 1fr;
    }

    .ls-auth-hero {
        min-height: auto;
    }

    .ls-staff-login {
        max-width: none;
    }
}
