html, body { height:100%; }
body { margin:0; font-family: Segoe UI, Arial, sans-serif; }
.layout { display:flex; min-height:100vh; }
.layout__sidebar { width: 260px; background:#0f172a; color:#fff; }
.layout__main { flex:1; display:flex; flex-direction:column; min-width:0; }
.sidebar { position:sticky; top:0; padding:16px; max-height:100vh; overflow:auto; }
.sidebar__brand { display:block; font-weight:700; font-size:18px; color:#fff; text-decoration:none; margin-bottom:12px; }
.sidebar__section { margin-top:0px;margin-bottom:20px;font-weight:bold; }
.sidebar__muted { color:#cbd5e1; font-size:16px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px;font-weight:500;margin-top:30px; }
.sidebar__list { list-style:none; padding:0; margin:0 0 10px 0;font-size:16px; }
.sidebar__list li { margin:4px 0;font-size:14px; }
.sidebar__list a { display:block; padding:8px 10px; color:#e2e8f0; text-decoration:none; border-radius:6px; }
.sidebar__list a:hover { background:rgba(255,255,255,.08); color:#fff; }
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #0f172a;
    position: sticky;
    top: 0;
    z-index: 2;
}
.topbar__title { font-weight:600; }
.topbar__user { margin-right:12px; color:#fff; }
.content { padding:16px;max-height:85vh;height:800px; }
.footer { margin-top:auto; padding:12px 16px; border-top:1px solid #e5e7eb; background:#fff; }
.btn { display:inline-block; padding:6px 10px; border-radius:6px; text-decoration:none; }
.btn--primary { background:#2563eb; color:#fff; }
.btn--link { color:#2563eb; }
.error { background:#fee2e2; color:#991b1b; padding:8px 10px; border-radius:6px; margin:8px 0; }
.info { background:#e0f2fe; color:#075985; padding:8px 10px; border-radius:6px; margin:8px 0; }
.muted { color:#6b7280; font-size:13px; }
@media (max-width: 900px) {
  .layout { flex-direction:column; }
  .layout__sidebar { width:auto; }
  .sidebar { display:flex; flex-wrap:wrap; gap:6px; }
  .sidebar__muted, .sidebar__section { width:100%; }
}
/* -------- Auth pages ---------- */

.auth-page {
    min-height: calc(100vh - 80px); /* leave room for top bar/footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 24px 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.19);
    border: 1px solid #e5e7eb;
}

.auth-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0f172a;
}

.auth-card__subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.auth-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    margin-bottom: 10px;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.auth-card label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.auth-card input[type="email"],
.auth-card input[type="text"] {
    /*width: 100%;*/
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .auth-card input[type="email"]:focus,
    .auth-card input[type="text"]:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    }

.auth-card button[type="submit"] {
    margin-top: 4px;
    padding: 9px 12px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    transition: transform .1s ease, box-shadow .1s ease, background .15s ease;
    width:fit-content;
    align-self:anchor-center;
}

    .auth-card button[type="submit"]:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
    }

    .auth-card button[type="submit"]:active {
        transform: translateY(0);
        box-shadow: none;
    }

.auth-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.auth-footer-note {
    margin-top: 14px;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.5;
}

    .auth-footer-note strong {
        color: #4b5563;
    }

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 8px 10px;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 13px;
}

.info {
    background: #e0f2fe;
    color: #075985;
    padding: 8px 10px;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 13px;
}
.sidebar__logo {
    display: block;
    height: 28px;
    max-width: 230px;
    object-fit: contain;
}
/* ---------- Home tiles ---------- */

.home-page {
    max-width: 960px;
    margin: 0 auto;
}

.home-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #6b7280;
}

.home-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.home-tile {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 18px 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.home-tile__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f172a;
}

.home-tile__body {
    font-size: 13px;
    color: #4b5563;
}

.home-tile__btn {
    align-self: flex-start;
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: transform .1s ease, box-shadow .1s ease;
}

    .home-tile__btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
    }

    .home-tile__btn:active {
        transform: translateY(0);
        box-shadow: none;
    }
