/* ClearKontakt — reutilizează tokenurile din docs/brand/00-canonical/module-brands-de.html
   (font, culori, stil card), nu inventează un sistem nou. */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #F7F5F0;
    color: #0d1117;
    min-height: 100vh;
}

a { color: inherit; }

/* ── Header ── */
.cs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.cs-brand { display: flex; align-items: center; gap: 12px; }

.cs-brand h1 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }

.cs-brand .accent { color: #D00000; }

.cs-brand .site { font-size: 12px; color: #888; }

.cs-logout {
    font-size: 13px;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.cs-logout:hover { color: #D00000; }

/* ── Layout ── */
main { max-width: 1040px; margin: 0 auto; padding: 2rem; }

.section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2rem 0 1rem;
}

.section-head h2 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #888;
}

.section-line { flex: 1; height: 1px; background: #E0DDD6; }

/* ── Grid + cards ── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    transition: transform .15s, box-shadow .15s;
}

.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }

.card-title { font-size: 16px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 6px; }

.card-meta { font-size: 11px; color: #888; margin-bottom: 8px; }

.card-summary { font-size: 13px; color: #555; line-height: 1.5; }

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: #F7F5F0;
    color: #666;
}

.pill.red { background: rgba(208, 0, 0, .08); color: #D00000; }

.empty { font-size: 13px; color: #999; padding: 1rem 0; }

/* ── Login ──
   Layout inspirat din ERP-Termopane/login/ (card centrat pe gradient, shadow
   pronuntat, animatie slide-up, focus ring) — adaptat pe identitatea ClearSui
   (rosu #D00000, nu albastru/portocaliu ALTER EGO). */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #D00000 0%, #4a0000 100%);
    padding: 1.5rem;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.75rem 2.25rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    animation: cs-slide-up .35s ease;
}

@keyframes cs-slide-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-card .cs-brand { justify-content: center; margin-bottom: 2rem; }

.login-card label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin: 1.1rem 0 .4rem;
}

.login-card input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 2px solid #E0DDD6;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.login-card input:focus {
    outline: none;
    border-color: #D00000;
    box-shadow: 0 0 0 3px rgba(208, 0, 0, .1);
}

.login-card button {
    width: 100%;
    margin-top: 1.75rem;
    padding: 13px;
    border-radius: 8px;
    border: none;
    background: #D00000;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, transform .1s;
}

.login-card button:hover {
    background: #B00000;
    box-shadow: 0 6px 16px rgba(208, 0, 0, .3);
}

.login-card button:active { transform: translateY(1px); }

.login-error {
    background: rgba(208, 0, 0, .08);
    color: #D00000;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 1.25rem;
}

.login-footer {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .75);
    margin-top: 1.5rem;
}
