:root {
    --accent: #176a58;
    --cash-surface: #e4f2ec;
    --cash-ink: #155544;
    --cash-deep: #123e35;
}

body[data-cash="2"] {
    --accent: #3654a4;
    --cash-surface: #e9edfc;
    --cash-ink: #293f82;
    --cash-deep: #23325e;
}

.login-screen {
    padding: clamp(16px, 5vw, 64px);
    background: radial-gradient(ellipse at 16% 0%, var(--cash-surface), #f5f7fa 64%);
}

.login-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(100%, 880px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: white;
    box-shadow: 0 22px 60px #18312b16;
}

.login-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(26px, 5vw, 56px);
    color: white;
    background: linear-gradient(155deg, var(--cash-deep), var(--accent));
}

.login-intro .brand-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 32px;
    border: 1px solid #ffffff55;
    border-radius: 15px;
    background: #ffffff17;
}

.login-intro .brand-icon svg { color: white; width: 26px; height: 26px; }
.login-kicker { margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.login-intro h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; }
.login-intro p { color: #ffffffe8; margin: 16px 0 20px; }
.login-steps { margin: 0; padding-left: 20px; line-height: 1.8; color: #ffffffe8; }

.login-card .login-form {
    width: 100%;
    max-width: none;
    padding: clamp(26px, 5vw, 52px);
    border: 0;
    gap: 16px;
}

.login-form h2 { font-size: 24px; }
.login-form input, .login-form button[type="submit"] { min-height: 46px; border-radius: 9px; }
.login-form label { font-weight: 600; }
.login-form .error { margin-top: 0; }
.login-form .error:empty { display: none; }
.cash-selector { border-top: 1px solid var(--border); padding-top: 16px; }
.cash-selector > span { display: block; margin-bottom: 8px; color: var(--muted); }
.cash-switch, .sidebar .cash-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: #eef1f4;
}
.cash-switch a {
    display: grid;
    min-height: 36px;
    place-items: center;
    border-radius: 7px;
    color: #3e4b55;
    white-space: nowrap;
}
.cash-switch a[aria-current="page"] { background: white; color: var(--cash-ink); font-weight: 700; box-shadow: 0 1px 4px #1e29331b; }
.cash-switch a:hover { text-decoration: none; background: white; }
.cash-switch a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cash-badge { display: inline-flex; align-self: flex-start; padding: 6px 10px; border-radius: 100px; color: var(--cash-ink); background: var(--cash-surface); font-weight: 700; white-space: nowrap; }
.topbar-context { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.sidebar-bottom .cash-switch { margin: 6px 0; }
body[data-cash="2"] button.primary:hover { background: var(--cash-deep); }
body[data-cash="2"] .nav-link.active { color: var(--cash-ink); background: var(--cash-surface); }

@media (max-width: 670px) {
    .login-card { grid-template-columns: 1fr; border-radius: 18px; }
    .login-intro .brand-icon, .login-steps { display: none; }
    .login-intro p { margin-bottom: 0; }
    .topbar-context { gap: 5px; flex-direction: column; align-items: flex-start; }
    .topbar-context .cash-badge { font-size: 11px; padding: 3px 7px; }
}
