/* ─── OpticPos Web — sıfırdan tasarım ─── */
:root {
    --font: 'Segoe UI', system-ui, sans-serif;
    --sidebar-w: 220px;

    --bg: #E8EFEA;
    --surface: #F7FBF8;
    --surface-2: #F3F6F4;
    --surface-3: #E8EFEA;

    --sidebar-bg: #0A2E26;
    --sidebar-hover: #0F3D32;
    --sidebar-active: #1F5C4B;
    --sidebar-text: #C9DDD5;
    --sidebar-text-active: #fff;

    --accent: #0F3D32;
    --accent-2: #1F5C4B;
    --accent-glow: rgba(15, 61, 50, 0.2);

    --ink: #1A2B24;
    --ink-2: #334155;
    --mute: #5A6F66;
    --border: #B7CBC2;
    --border-2: #C5D4CC;

    --ok: #2E7D32;
    --ok-bg: #D9F0E3;
    --bad: #A33B3B;
    --bad-bg: #F8DADA;
    --warn: #C62828;
    --warn-bg: #F8DADA;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

/* ─── App shell ─── */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.main-area {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.top-bar-main { flex: 1; min-width: 0; }
.top-bar-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.section-title {
    margin: 0 0 0.15rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.section-sub {
    margin: 0;
    font-size: 0.85rem;
    color: var(--mute);
}

.content {
    padding: 1.5rem 2rem 3rem;
    flex: 1;
}

/* ─── Brand & nav ─── */
.brand {
    padding: 0 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--sidebar-active);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--sidebar-text);
    margin-top: 0.1rem;
}

.nav {
    flex: 1;
    padding: 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-weight: 500;
    font-size: 0.92rem;
    border: none;
    transition: all var(--transition);
}

.nav .nav-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    flex-shrink: 0;
}

.nav .nav-link:hover {
    background: var(--sidebar-hover);
    color: white;
}

.nav .nav-link:hover svg { opacity: 1; }

.nav .nav-link.active {
    background: var(--sidebar-active);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.nav .nav-link.active svg { opacity: 1; }

.sidebar-footer {
    padding: 1rem 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c9a7, #00a3ff);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.user-name { font-size: 0.85rem; font-weight: 600; color: white; }
.user-role { font-size: 0.72rem; color: var(--sidebar-text); }

/* ─── Status pills ─── */
.status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--ink-2);
}

.status-chip .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-chip.online .dot { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.status-chip.offline .dot { background: var(--bad); }
.status-chip.neutral .dot { background: var(--warn); }

/* ─── Cards & panels ─── */
.card, .panel, .panel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.card-header h2, .card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--mute);
}

/* ─── Tables ─── */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mute);
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.data-table th:first-child { border-radius: var(--radius-xs) 0 0 0; }
.data-table th:last-child { border-radius: 0 var(--radius-xs) 0 0; }

.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }

.data-table code {
    font-size: 0.82rem;
    background: var(--surface-3);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    color: var(--accent);
}

/* ─── Buttons ─── */
.btn-op {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-op:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary, .btn-accent, .btn-login {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    border-radius: var(--radius-sm) !important;
    padding: 0.7rem 1.25rem;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: all var(--transition);
}

.btn-primary:hover:not(:disabled), .btn-accent:hover:not(:disabled), .btn-login:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-ghost {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--ink-2);
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-ghost:hover { background: var(--surface-3); border-color: var(--border-2); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--ink-2);
    font-weight: 500;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Forms ─── */
.field { margin-bottom: 1rem; }

.field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: 0.01em;
}

.field-box, .form-control {
    width: 100%;
    padding: 0.7rem 0.9rem !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font) !important;
    font-size: 0.95rem !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field-box:focus, .form-control:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

/* ─── Login ─── */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-hero {
    background: linear-gradient(145deg, #0c1222 0%, #0f2847 50%, #0a3d35 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.login-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 163, 255, 0.12) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.login-hero-content { position: relative; z-index: 1; }

.login-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    line-height: 1.1;
}

.login-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 380px;
    line-height: 1.6;
    margin: 0;
}

.login-hero-features {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.login-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 201, 167, 0.15);
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.login-side {
    display: grid;
    place-items: center;
    padding: 2rem;
    background: var(--bg);
}

.login-card {
    width: min(400px, 100%);
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.login-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.login-card .subtitle {
    color: var(--mute);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* ─── POS ─── */
.pos-page { max-width: 1400px; }

.scan-hero {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    background: var(--sidebar-bg);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.scan-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.08) 0%, rgba(0, 163, 255, 0.06) 100%);
    pointer-events: none;
}

.scan-main {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.scan-side {
    background: rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.scan-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.scan-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.scan-code {
    font-family: 'Consolas', 'SF Mono', monospace;
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    min-height: 2.75rem;
    letter-spacing: 0.04em;
    word-break: break-all;
}

.scan-code.empty {
    opacity: 0.3;
    font-size: 1.5rem;
    font-family: var(--font);
    font-weight: 500;
}

.scan-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.scan-form .form-control {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}

.scan-form .form-control::placeholder { color: rgba(255, 255, 255, 0.35); }

.scan-form .btn-scan {
    background: white;
    color: var(--sidebar-bg);
    border: none;
    font-weight: 600;
    padding: 0 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font);
    white-space: nowrap;
}

.scan-side h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.scan-side p { color: rgba(255, 255, 255, 0.55); margin: 0 0 1rem; font-size: 0.9rem; }

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    color: var(--ink-2);
}

.status-bar::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.pos-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.25rem;
    align-items: start;
}

.totals .total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.totals .grand {
    font-weight: 800;
    font-size: 1.35rem;
    border-top: 2px solid var(--border);
    margin: 0.75rem 0 1.25rem;
    padding-top: 0.75rem;
    letter-spacing: -0.02em;
}

.pay-row { margin-bottom: 0.85rem; }
.pay-row label { font-size: 0.82rem; font-weight: 600; color: var(--mute); margin-bottom: 0.3rem; display: block; }

/* ─── Dashboard ─── */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.stat-card .label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mute);
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* ─── Devices ─── */
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.device-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.device-card:hover { transform: translateY(-2px); }

.device-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.device-card p { margin: 0 0 0.5rem; font-weight: 600; font-size: 0.95rem; }
.device-card small { color: var(--mute); font-size: 0.8rem; }

.device-card.online { border-left: 3px solid var(--ok); }
.device-card.offline { border-left: 3px solid var(--bad); }
.device-card.neutral { border-left: 3px solid var(--warn); }

/* ─── Admin tabs ─── */
.tab-bar {
    display: flex;
    gap: 0.35rem;
    background: var(--surface-2);
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}

.tab-bar .tab-btn {
    flex: 1;
    padding: 0.55rem 1rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-xs);
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--mute);
    cursor: pointer;
    transition: all var(--transition);
}

.tab-bar .tab-btn:hover { color: var(--ink); }

.tab-bar .tab-btn.active {
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ─── Info list ─── */
.info-list { margin: 0; }

.info-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.info-row:last-child { border-bottom: none; }

.info-row dt {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mute);
    margin: 0;
}

.info-row dd {
    margin: 0;
    font-size: 0.92rem;
}

.info-row dd code {
    font-size: 0.82rem;
    background: var(--surface-3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.audit-json {
    background: var(--sidebar-bg);
    color: #a8b4c4;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    max-height: 480px;
    overflow: auto;
    margin: 0;
}

/* ─── Alerts ─── */
.alert-op {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.alert-op.warn { background: var(--warn-bg); color: #92400e; border: 1px solid #fcd34d; }
.alert-op.danger { background: var(--bad-bg); color: #991b1b; border: 1px solid #fca5a5; }

.muted { color: var(--mute); }

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--mute);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* ─── Loading ─── */
.loading-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--bg);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Blazor error ─── */
#blazor-error-ui {
    background: #fef3c7;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
    font-size: 0.9rem;
}

#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: 0.6rem; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .sidebar { display: none; }
    .main-area { margin-left: 0; }
    .scan-hero, .pos-grid { grid-template-columns: 1fr; }
    .scan-side { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .content { padding: 1rem; }
    .top-bar { padding: 0.85rem 1rem; }
}

@media (max-width: 768px) {
    .login-page { grid-template-columns: 1fr; }
    .login-hero { display: none; }
    .login-side { min-height: 100vh; }
}

/* ─── Admin shell ─── */
.admin-shell {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: var(--sidebar-bg);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.admin-sub {
    margin: 0.25rem 0 0;
    color: #8FB5A8;
    font-size: 0.82rem;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-user {
    color: #C9DDD5;
    font-size: 0.88rem;
}

.admin-tab-bar {
    display: flex;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    overflow-x: auto;
}

.admin-tab {
    padding: 0.85rem 1rem;
    color: var(--mute);
    font-weight: 600;
    font-size: 0.88rem;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.admin-tab:hover {
    color: var(--ink);
    text-decoration: none;
}

.admin-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.admin-content {
    padding: 1.25rem 1.5rem 2rem;
    flex: 1;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.status-banner {
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.status-banner.ok { background: var(--ok-bg); color: var(--ok); }
.status-banner.bad { background: var(--bad-bg); color: var(--bad); }

.btn-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.login-footer-link {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.88rem;
}

.login-page--admin {
    grid-template-columns: 1fr;
    min-height: 100vh;
}

.login-side--full {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.alert-op.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #86efac; }

@media (max-width: 900px) {
    .admin-grid-2, .form-grid { grid-template-columns: 1fr; }
}
