:root{
    --bg1:#0b1220;
    --bg2:#121a2c;
    --card:#0f172a;
    --text:#e5e7eb;
    --muted:#9ca3af;
    --border:rgba(255,255,255,.10);
    --focus:rgba(59,130,246,.45);
    --btn:#2563eb;
    --btn2:#1d4ed8;
    --danger:#ef4444;
    --bg:#0b1220;
    --stroke:#20314a;
    --primary:#3b82f6;
    --ok:#22c55e;
    --warn:#f59e0b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
    margin:0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color:var(--text);
    background:
            radial-gradient(900px 500px at 15% 10%, rgba(37,99,235,.35), transparent 60%),
            radial-gradient(700px 400px at 85% 30%, rgba(168,85,247,.25), transparent 60%),
            linear-gradient(180deg, var(--bg1), var(--bg2));
    display:grid;
    place-items:center;
    padding: 24px;
}
/*body{*/
/*    margin:0;*/
/*    font:14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;*/
/*    color:var(--text);*/
/*    background:linear-gradient(180deg, var(--bg), #070b14);*/
/*}*/

.auth{
    width: min(420px, 100%);
    background: rgba(15,23,42,.86);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
}

.auth__head{
    margin-bottom: 18px;
}

.auth__title{
    margin:0 0 6px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
}

.auth__subtitle{
    margin:0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.field{
    margin-top: 14px;
}

.field label{
    display:block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.control{
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(2,6,23,.35);
    color: var(--text);
    padding: 10px 12px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.control::placeholder{ color: rgba(156,163,175,.7); }

.control:focus{
    border-color: rgba(59,130,246,.7);
    box-shadow: 0 0 0 4px var(--focus);
    background: rgba(2,6,23,.5);
}

.row{
    display:flex;
    justify-content: space-between;
    align-items:center;
    gap: 12px;
    margin-top: 14px;
}

.check{
    display:flex;
    align-items:center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    user-select:none;
}
.check input{ width: 16px; height: 16px; }

.link{
    color: rgba(147,197,253,.95);
    font-size: 13px;
    text-decoration: none;
}
.link:hover{ text-decoration: underline; }

.btn{
    width: 100%;
    height: 44px;
    margin-top: 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--btn), var(--btn2));
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform .06s, filter .15s;
}
.btn:active{ transform: translateY(1px); }
.btn:hover{ filter: brightness(1.05); }

.note{
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* Пример стиля ошибки (если добавите класс .is-invalid) */
.control.is-invalid{
    border-color: rgba(239,68,68,.8);
    box-shadow: 0 0 0 4px rgba(239,68,68,.18);
}
.error-text{
    margin: 8px 0 0;
    font-size: 12px;
    color: rgba(239,68,68,.95);
}


.page{
    max-width:1100px;
    margin:24px auto;
    padding:0 16px;
}

.page__head{ display:flex; flex-direction:column; gap:12px; }
.page__title{ margin:0; font-size:22px; font-weight:700; }

.page__toolbar{
    display:flex;
    align-items:flex-end;
    gap:12px;
    justify-content:space-between;
    flex-wrap:wrap;
}

.filters{ flex:1 1 720px; }
.filters__group{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:flex-end;
}

.field{ display:flex; flex-direction:column; gap:6px; min-width:160px; }
.field--grow{ flex:1 1 280px; min-width:240px; }
.field__label{ font-size:12px; color:var(--muted); }
.field__control{
    height:38px;
    padding:8px 10px;
    border:1px solid var(--stroke);
    border-radius:10px;
    background:#0b1424;
    color:var(--text);
    outline:none;
}
.field__control:focus{ border-color:#365b95; box-shadow:0 0 0 3px rgba(59,130,246,.18); }

.page__actions{ flex:0 0 auto; }

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    height:38px;
    padding:0 12px;
    border-radius:10px;
    border:1px solid transparent;
    text-decoration:none;
    color:var(--text);
    background:transparent;
    cursor:pointer;
    white-space:nowrap;
}
.btn--primary{ background:var(--primary); border-color:rgba(255,255,255,.08); }
.btn--secondary{ background:#13233a; border-color:var(--stroke); }
.btn--ghost{ background:transparent; border-color:var(--stroke); color:var(--muted); }
.btn--danger{ background:rgba(239,68,68,.16); border-color:rgba(239,68,68,.28); color:#ffd6d6; }
.btn--small{ height:32px; padding:0 10px; border-radius:9px; font-size:13px; }
.btn:focus-visible{ outline:2px solid rgba(59,130,246,.65); outline-offset:2px; }

.card{
    margin-top:14px;
    background:rgba(15,26,43,.9);
    border:1px solid var(--stroke);
    border-radius:14px;
    overflow:hidden;
}

.table-wrap{ overflow:auto; }
.table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    min-width:860px;
}
.table thead th{
    text-align:left;
    font-weight:600;
    font-size:12px;
    color:var(--muted);
    background:#0d1627;
    border-bottom:1px solid var(--stroke);
    padding:12px 14px;
    position:sticky;
    top:0;
    z-index:1;
}
.table tbody td{
    padding:12px 14px;
    border-bottom:1px solid rgba(32,49,74,.65);
    vertical-align:middle;
}
.table tbody tr:hover{ background:rgba(59,130,246,.06); }

.col-title{ width:55%; }
.col-date{ width:15%; }
.col-status{ width:15%; }
.col-actions{ width:15%; text-align:right; }
.cell-actions{ text-align:right; }

.link{ color:var(--text); text-decoration:none; }
.link:hover{ text-decoration:underline; }

.row-actions{
    display:inline-flex;
    gap:8px;
    align-items:center;
    justify-content:flex-end;
}

.badge{
    display:inline-flex;
    align-items:center;
    padding:4px 10px;
    border-radius:999px;
    font-size:12px;
    background:rgba(168,179,204,.14);
    border:1px solid rgba(168,179,204,.22);
    color:var(--muted);
}
.badge--ok{
    background:rgba(34,197,94,.12);
    border-color:rgba(34,197,94,.25);
    color:#bff2cf;
}
.badge--warn{
    background:rgba(245,158,11,.14);
    border-color:rgba(245,158,11,.28);
    color:#ffe2b6;
}

.card__foot{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 14px;
    background:#0d1627;
}
.meta{ color:var(--muted); font-size:12px; }
.pager{ display:flex; gap:10px; align-items:center; }
.pager__btn{
    color:var(--text);
    text-decoration:none;
    padding:6px 10px;
    border:1px solid var(--stroke);
    border-radius:10px;
    background:#0b1424;
}
.pager__btn[aria-disabled="true"]{ opacity:.5; pointer-events:none; }
.pager__info{ color:var(--muted); font-size:12px; }