:root {
    --ink: #1b2430;
    --muted: #667085;
    --paper: #ffffff;
    --bg: #f4f6fb;
    --line: #e7ebf2;
    --teal: #4f46e5;
    --teal-dark: #3730a3;
    --coral: #e11d48;
    --amber: #f59e0b;
    --violet: #7c3aed;
    --blue: #2563eb;
    --green: #16a34a;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 24px rgba(16, 24, 40, 0.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
}
a { color: var(--teal-dark); }
h1, h2, h3 { font-family: inherit; font-weight: 650; letter-spacing: -0.02em; margin: 0; color: #111827; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1rem; }
.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 22px;
    background: transparent;
    border-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 5;
}
.brand { display: flex; gap: 8px; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.brand strong { display: block; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.02em; }
.brand small { display: none; }
.side-brand { padding: 2px 6px 14px; color: inherit; }
.side-brand .mark { width: 32px; height: 32px; border-radius: 10px; font-size: 0.95rem; }
.side-brand strong { font-size: 1.05rem; letter-spacing: -0.03em; }
.mark {
    width: 28px; height: 28px; border-radius: 8px;
    display: grid; place-items: center; color: white; font-weight: 700; font-size: 0.85rem;
    background: linear-gradient(160deg, #6366f1, #4f46e5);
    box-shadow: none;
}
.app-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.app-shell:has(.sidebar) {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
}
.app-shell:has(.sidebar) .app-frame { display: contents; }
.app-shell:has(.sidebar) .sidebar { grid-column: 1; grid-row: 1 / -1; }
.app-shell:has(.sidebar) .topbar { grid-column: 2; grid-row: 1; }
.app-shell:has(.sidebar) .topbar .brand { display: none; }
.app-shell:has(.sidebar) .app-column { grid-column: 2; grid-row: 2; }
.app-frame { display: flex; flex: 1; align-items: stretch; direction: ltr; min-width: 0; }
.sidebar {
    width: 232px; flex: none; padding: 16px 12px 12px;
    background: #fff;
    border-right: 1px solid #eef1f6;
}
.app-column { flex: 1; min-width: 0; background: var(--bg); }
html[dir="rtl"] .app-column { direction: rtl; }
html[dir="ltr"] .app-column { direction: ltr; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav::before {
    content: "MENÜ";
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: #98a2b3;
    font-weight: 700;
    padding: 4px 10px 6px;
}
.nav a {
    text-decoration: none; color: #3a4453; padding: 0 10px; border-radius: 10px;
    background: transparent; border: 0; font-size: 0.84rem; font-weight: 550;
    display: flex; align-items: center; gap: 10px; min-height: 34px;
}
.nav a[data-nav="dashboard"] .nav-ico { color: #2563eb; }
.nav a[data-nav="users"] .nav-ico { color: #0f766e; }
.nav a[data-nav="teachers"] .nav-ico { color: #7c3aed; }
.nav a[data-nav="students"] .nav-ico { color: #0369a1; }
.nav a[data-nav="classes"] .nav-ico { color: #b45309; }
.nav a[data-nav="schedules"] .nav-ico { color: #be123c; }
.nav a[data-nav="attendance"] .nav-ico { color: #047857; }
.nav a[data-nav="progress"] .nav-ico { color: #6d28d9; }
.nav a[data-nav="fees"] .nav-ico { color: #c2410c; }
.nav a[data-nav="payments"] .nav-ico { color: #1d4ed8; }
.nav a[data-nav="sms"] .nav-ico { color: #0e7490; }
.nav a[data-nav="profile"] .nav-ico { color: #334155; }
.nav-ico { width: 16px; height: 16px; flex: none; }
.nav a[data-nav="membership"] .nav-ico { color: #1d4ed8; }
.nav a[data-nav="packages"] .nav-ico { color: #7c3aed; }
.nav a[data-nav="demos"] .nav-ico { color: #b45309; }
.nav a.active { background: #f4f6fb; color: #111827; font-weight: 650; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 0 0 1px #e6ebf2; }
.nav a:hover { background: #f8f9fc; }
.user-menu { margin-inline-start: auto; position: relative; }
.user-menu summary {
    list-style: none; display: flex; gap: 8px; align-items: center; cursor: pointer;
    background: #fff; border: 1px solid #e6ebf2; border-radius: 8px; padding: 4px 8px 4px 4px;
    min-height: 36px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary::after {
    content: "";
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #64748b;
    margin-inline-start: 2px;
}
.avatar {
    width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center;
    background: #4f46e5; color: white; font-weight: 700; font-size: 0.72rem;
}
.who { display: flex; flex-direction: column; line-height: 1.1; }
.who strong { font-size: 0.8rem; font-weight: 650; }
.who small { color: var(--muted); font-size: 0.68rem; }
.menu-panel {
    position: absolute; inset-inline-end: 0; top: calc(100% + 6px); width: 240px;
    background: white; border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12); padding: 12px;
    border: 1px solid var(--line); display: grid; gap: 8px; z-index: 20;
}
.menu-panel label { font-size: 0.75rem; color: var(--muted); display: block; }
.menu-panel select, .menu-panel button { width: 100%; margin-top: 4px; }
.menu-role { margin: 0; font-size: 0.8rem; color: var(--muted); }
.menu-link { text-decoration: none; font-weight: 650; font-size: 0.84rem; color: var(--ink); }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 8px auto 32px; display: grid; gap: 14px; }
.page-head, .actions, .filter-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-head { justify-content: space-between; align-items: flex-end; }
.kicker { text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 0.8rem; font-weight: 550; margin: 0 0 2px; }
.lead { color: var(--muted); max-width: 68ch; margin: 4px 0 0; font-size: 0.86rem; }
.card { background: #fff; border: 1px solid #eef1f6; border-radius: 16px; box-shadow: var(--shadow); padding: 16px; }
.table-card { padding: 4px 4px 10px; overflow: hidden; }
.filters.card { padding: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat {
    border-radius: 16px; padding: 14px 14px 12px; color: var(--ink); min-height: 96px;
    display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; row-gap: 8px; align-content: start;
    background: #fff; border: 1px solid #eef1f6; box-shadow: var(--shadow);
}
.stat::before {
    content: ""; width: 28px; height: 28px; border-radius: 8px; grid-row: 1; grid-column: 1;
    background: #eef2ff center / 14px 14px no-repeat;
}
.stat span { grid-row: 1; grid-column: 2; align-self: center; color: #667085; font-size: 0.78rem; font-weight: 600; }
.stat strong { grid-column: 1 / -1; font-size: 1.55rem; font-family: inherit; font-weight: 700; line-height: 1; color: #111827; letter-spacing: -0.03em; }
.tone-teal::before { background-color: #ecfdf3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.tone-coral::before { background-color: #fff1f2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5'/%3E%3C/svg%3E"); }
.tone-amber::before { background-color: #fff7ed; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2'%3E%3Cpath d='M12 3l2 6h6l-5 4 2 6-5-4-5 4 2-6-5-4h6z'/%3E%3C/svg%3E"); }
.tone-violet::before { background-color: #f5f3ff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Cpath d='M4 19V5M4 19h16M8 16v-5M12 16V8M16 16v-3'/%3E%3C/svg%3E"); }
.tone-blue::before { background-color: #eff6ff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 19a6 6 0 0 1 12 0'/%3E%3C/svg%3E"); }
.tone-green::before { background-color: #ecfdf3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2'%3E%3Cpath d='M4 12h16M12 4v16'/%3E%3C/svg%3E"); }
.stat.tone-blue {
    background: linear-gradient(160deg, #4f46e5, #2563eb); color: white; border: 0;
}
.stat.tone-blue span, .stat.tone-blue strong { color: white; }
.stat.tone-blue::before { background-color: rgba(255,255,255,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 19a6 6 0 0 1 12 0'/%3E%3C/svg%3E"); }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; }
.filters label, .stack label, .field { display: grid; gap: 4px; font-size: 0.78rem; color: var(--muted); font-weight: 650; }
input, select, textarea {
    width: 100%; border: 1px solid #d5dbe3; background: white; border-radius: 2px;
    padding: 7px 8px; color: var(--ink); font: inherit; font-weight: 450;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(29, 78, 216, 0.2); border-color: #1d4ed8; }
.btn {
    border: 1px solid transparent; border-radius: 2px; padding: 7px 12px; text-decoration: none; display: inline-flex;
    align-items: center; justify-content: center; cursor: pointer; font-weight: 650; font-size: 0.84rem;
    color: var(--ink); background: white;
}
.btn.primary { background: #4f46e5; border-color: #4f46e5; color: white; }
.btn.danger { background: #b42318; border-color: #b42318; color: white; }
.btn.amber { background: #b45309; border-color: #b45309; color: white; }
.btn.ghost { background: white; border: 1px solid #d5dbe3; color: #1c2430; }
.btn.tiny { padding: 5px 8px; font-size: 0.78rem; }
.btn.disabled { pointer-events: none; opacity: 0.45; }
.table-meta, .pager { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.pager { margin-top: 10px; }
.pager label { display: flex; gap: 8px; align-items: center; }
.pager select { width: auto; }
.table-scroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; background: #fff; }
table.grid th { text-align: start; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; padding: 8px 10px; background: #f8fafc; border-bottom: 1px solid var(--line); font-weight: 700; }
table.grid td { padding: 8px 10px; border-top: 1px solid #eef1f5; vertical-align: middle; }
table.grid tbody tr:hover { background: #e8eef8; }
table.grid tbody tr.is-selected { background: #d6e4ff; box-shadow: inset 3px 0 0 #1d4ed8; }
.badge { display: inline-flex; border-radius: 2px; padding: 2px 6px; font-size: 0.72rem; font-weight: 700; background: #eef2f6; color: #334155; }
.badge-active, .badge-present, .badge-paid { background: #d1fae5; color: #065f46; }
.badge-inactive, .badge-absent, .badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-late, .badge-partial, .badge-pending { background: #ffedd5; color: #9a3412; }
.badge-excused, .badge-completed, .badge-withdrawn { background: #e0e7ff; color: #3730a3; }
.alert { border-radius: 4px; padding: 10px 12px; }
.alert.good { background: #ecfdf3; color: #065f46; }
.alert.bad { background: #fef3f2; color: #991b1b; }
.alert.warn { background: #fffaeb; color: #92400e; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; }
.pairs div { background: #f8fafc; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; }
.pairs dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.pairs dd { margin: 2px 0 0; font-size: 0.95rem; font-weight: 650; }
.stack { display: grid; gap: 10px; }
form.stack { grid-template-columns: 1fr 1fr; }
form.stack .actions, form.stack label:has(textarea), form.stack .field-wide, form.stack .table-scroll, form.stack > button { grid-column: 1 / -1; }
.auth-card form.stack, .narrow form.stack { grid-template-columns: 1fr; }
.narrow { max-width: 640px; }
.footer { text-align: center; color: var(--muted); padding: 8px 16px 24px; font-size: 0.78rem; }
.bars { display: grid; gap: 8px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 8px; align-items: center; font-size: 0.8rem; }
.track { background: #e8edf3; border-radius: 2px; height: 8px; overflow: hidden; }
.fill { height: 100%; border-radius: 2px; }
.auth-body { position: relative; min-height: 100vh; background: #f4f6fb; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art {
    position: relative; overflow: hidden; color: white; padding: 48px;
    background: linear-gradient(165deg, #312e81, #4f46e5 58%, #2563eb);
    display: flex; flex-direction: column; justify-content: flex-end;
}
.auth-art h1 { font-size: 2.4rem; color: white; margin: 12px 0 8px; }
.auth-art p { color: #d6deea; }
.auth-points { margin: 16px 0 0; padding: 0 0 0 18px; color: #e0e7ff; display: grid; gap: 8px; }
.auth-card h2 { margin: 0; font-size: 1.45rem; }
.pass-line { display: flex; gap: 6px; align-items: center; }
.pass-line input { flex: 1; }
label.remember { display: flex; flex-direction: row; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--ink); font-weight: 550; }
label.remember input { width: 16px; min-width: 16px; height: 16px; flex: 0 0 16px; margin: 0; padding: 0; }
.modal-head .contact-links, .modal-head .btn { flex-shrink: 0; }
.modal-head .btn { white-space: nowrap; }
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 42, 0.45); display: flex; justify-content: center; align-items: flex-start; padding: 28px 12px; overflow: auto; }
table.grid tbody tr[data-id] { cursor: pointer; }
.demo-pack { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.demo-pack span { color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.demo-pack strong { font-size: 1rem; }
.demo-pack small { color: var(--muted); }
.modal-card { width: min(760px, 100%); background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.modal-head h2 { margin: 0; flex: 1; font-size: 1.15rem; }
.modal-card form.stack { grid-template-columns: 1fr 1fr; }
#modal-fields { display: contents; }
.contact-links svg { display: block; }
.blob { display: none; }
.auth-card { display: grid; align-content: center; padding: 40px; gap: 14px; background: #fff; }
.auth-demo { margin: 0; color: var(--muted); font-size: 0.85rem; }
.login-plain { position: relative; min-height: 100vh; padding: 72px 16px 40px; }
.login-lang {
    position: absolute; top: 18px; inset-inline-end: 18px;
    display: flex; gap: 8px; align-items: center;
}
.login-lang select { width: auto; min-width: 148px; background: #fff; }
.login-card {
    width: min(400px, 100%); margin: 0 auto; background: #fff;
    border: 1px solid #eef1f6; border-radius: 16px; box-shadow: var(--shadow);
    padding: 28px 24px 22px; display: grid; gap: 8px; justify-items: start;
}
.login-card h1 { font-size: 1.45rem; }
.login-card .lead { margin: 0 0 8px; }
.login-card form.stack, .login-card #flash { width: 100%; grid-template-columns: 1fr; }
.login-foot { margin: 6px 0 0; font-size: 0.84rem; color: var(--muted); }
.login-foot a { font-weight: 650; }
.lang-row { display: flex; gap: 8px; align-items: end; }
.lang-row select { width: auto; }
.share-body { background: #f4f6fb; }
.share-wrap { width: min(760px, calc(100% - 24px)); margin: 32px auto; }
.chart-card canvas { max-width: 100%; }
[hidden] { display: none !important; }
html.js .chart-card.chart-ok [data-fallback] { display: none; }
.menu-toggle {
    display: none; border: 1px solid #e6ebf2; background: #fff; color: #1c2430;
    border-radius: 2px; width: 32px; height: 32px; font-size: 1rem; cursor: pointer; padding: 0;
}
.bottom-nav { display: none; }
.nav-backdrop { display: none; }
.week-grid { border-collapse: collapse; min-width: 880px; width: 100%; }
.week-grid th, .week-grid td { border: 1px solid #e3e7ee; padding: 4px; vertical-align: top; font-size: 0.72rem; background: white; }
.week-grid th { background: #eef2ff; color: #312e81; font-weight: 650; }
.week-slot { display: block; background: #4f46e5; color: white; padding: 3px 4px; margin-bottom: 3px; border-radius: 2px; text-decoration: none; font-size: 0.7rem; }
.icon-btn { width: 32px; height: 32px; padding: 0; border-radius: 2px; }
.contact-links { display: flex; gap: 6px; align-items: center; }
.contact-links a { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: #4f46e5; color: white; text-decoration: none; border-radius: 2px; font-weight: 700; }
.contact-links a.wa { background: #047857; }
.search-pop { border: 1px solid var(--line); background: white; padding: 10px; display: grid; gap: 8px; border-radius: 4px; }
.search-hit { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
    html, body { overflow-x: hidden; }
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat strong { font-size: 1.15rem; }
    .charts, .filters, .pairs, .auth-shell, form.stack { grid-template-columns: 1fr; }
    .auth-art { min-height: 140px; padding: 24px; }
    .auth-art h1 { font-size: 1.8rem; }
    .app-shell:has(.sidebar) { display: flex; flex-direction: column; }
    .app-shell:has(.sidebar) .app-frame { display: block; }
    .app-shell:has(.sidebar) .topbar { height: 52px; background: #fff; border-bottom: 1px solid var(--line); }
    .app-shell:has(.sidebar) .topbar .brand { display: flex; }
    .topbar { z-index: 50; padding: 0 10px; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .app-frame { display: block; }
    .sidebar {
        position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(260px, 86vw);
        transform: translateX(-110%); transition: transform 0.18s ease; background: #fff;
        border-right: 1px solid var(--line); overflow: auto; padding-top: 64px;
    }
    .side-brand { display: none; }
    .sidebar.open { transform: none; }
    html[dir="rtl"] .sidebar { left: auto; right: 0; transform: translateX(110%); }
    html[dir="rtl"] .sidebar.open { transform: none; }
    .sidebar .nav { flex-direction: column; overflow: visible; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 35; display: block; }
    .app-shell .user-menu { margin-inline-start: auto; }
    .who small { display: none; }
    .wrap { width: min(100% - 16px, 1100px); margin-top: 12px; padding-bottom: 12px; }
    .footer { padding-bottom: 88px; }
    .bottom-nav {
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
        background: #fff; border-top: 1px solid #eef1f6;
        padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
        box-shadow: 0 -6px 16px rgba(16, 24, 40, 0.04);
    }
    .bottom-nav a, .bottom-plus {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        text-decoration: none; color: #667085; font-size: 0.65rem; font-weight: 650; background: transparent; border: 0;
        min-height: 44px;
    }
    .bottom-nav a svg { width: 18px; height: 18px; }
    .bottom-nav a.active, .bottom-nav a[aria-current="page"] { color: #4f46e5; }
    .bottom-plus {
        width: 44px; height: 44px; margin: -16px auto 0; border-radius: 2px;
        background: #4f46e5; color: white; font-size: 1.4rem; line-height: 1; cursor: pointer;
        box-shadow: 0 8px 16px rgba(79, 70, 229, 0.28);
    }
    table.grid thead { display: none; }
    table.grid tr { display: block; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 8px; padding: 4px; background: white; }
    table.grid td { display: flex; justify-content: space-between; gap: 12px; border: 0; }
    table.grid td::before { content: attr(data-label); color: var(--muted); font-weight: 700; }
}
@media print {
    .topbar, .sidebar, .actions, .footer, .nav-backdrop, .menu-toggle, .bottom-nav, #student-search, #confirm, .filters { display: none !important; }
    .app-frame { display: block; }
}
.login-page { background: #f6f7fb; }
.login-page .login-lang { z-index: 5; }
.login-page .login-lang select { background: #fff; border-radius: 10px; }
.login-page .auth-shell { background: #f6f7fb; }
.login-page .auth-art {
    justify-content: center; align-items: flex-start; min-height: 100vh; padding: 72px 64px;
    background: linear-gradient(165deg, #a855f7 0%, #7c3aed 42%, #6d28d9 78%, #5b21b6 100%);
}
.login-page .auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; color: #fff; }
.login-page .auth-logo {
    width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.18); color: #fff;
}
.login-page .auth-logo svg { width: 26px; height: 26px; }
.login-page .auth-brand strong { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.login-page .auth-art h1 {
    margin: 0 0 16px; max-width: 11em; color: #fff; font-size: 3rem; line-height: 1.12; font-weight: 750; letter-spacing: -0.03em;
}
.login-page .auth-art p { margin: 0; max-width: 38em; color: rgba(255, 255, 255, 0.88); font-size: 1.02rem; line-height: 1.55; }
.login-page .auth-chips { display: flex; gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; width: 100%; max-width: 560px; }
.login-page .auth-chips li {
    flex: 1; display: grid; gap: 4px; padding: 16px 14px; border-radius: 16px;
    background: rgba(76, 29, 149, 0.28); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff;
}
.login-page .auth-chips strong { font-size: 0.98rem; font-weight: 700; }
.login-page .auth-chips span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.78); line-height: 1.35; }
.login-page .auth-card { background: #f6f7fb; justify-items: center; padding: 48px 28px; }
.login-page .login-form-wrap { width: min(420px, 100%); display: grid; gap: 6px; }
.login-page .auth-card h2 { margin: 0; font-size: 1.7rem; font-weight: 760; letter-spacing: -0.03em; color: #111827; }
.login-page .login-sub { margin: 0 0 14px; color: #667085; font-size: 0.98rem; }
.login-page .auth-card form.stack { width: 100%; gap: 8px; }
.login-page .auth-card form.stack > label:not(.remember) { font-size: 0.84rem; color: #475467; font-weight: 650; }
.login-page .login-form input[type="email"],
.login-page .login-form input[type="password"],
.login-page .login-form input[type="text"] {
    height: 48px; border-radius: 12px; border: 1px solid #e4e7ec; background: #fff; padding: 0 14px;
}
.login-page .pass-line { position: relative; display: block; }
.login-page .pass-line input { width: 100%; padding-inline-end: 44px; }
.login-page .pass-line .icon-btn {
    position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: 0; background: transparent; color: #98a2b3; border-radius: 8px;
}
.login-page .pass-line .icon-btn svg { width: 20px; height: 20px; display: block; margin: 0 auto; }
.login-page label.remember { margin: 4px 0 8px; }
.login-page .login-go,
.login-page .login-register {
    width: 100%; height: 48px; border-radius: 12px; font-size: 0.98rem; font-weight: 700;
}
.login-page .login-go {
    border: 0; color: #fff; background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 58%, #2563eb 100%);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
}
.login-page .login-register {
    margin-top: 4px; background: #fff; border: 1px solid #e4e7ec; color: #344054; text-decoration: none;
}
.login-page #flash { width: 100%; }
.sms-people td { white-space: pre-line; }
@media (max-width: 900px) {
    .login-page .auth-shell { grid-template-columns: 1fr; }
    .login-page .auth-art { min-height: 0; padding: 88px 22px 28px; }
    .login-page .auth-art h1 { font-size: 2.1rem; }
    .login-page .auth-chips { flex-direction: column; }
    .login-page .auth-card { padding: 28px 16px 40px; }
}
