/* ===========================
   Global
   =========================== */

:root {
    color-scheme: dark;
    --color-bg: #020617;
    --color-text-primary: #e5e7eb;
    --color-text-muted: #9ca3af;
    --color-border: #374151;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --transition-fast: 140ms ease-out;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Login ir dashboard fonai */

.app-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--color-text-primary);
    background: linear-gradient(160deg, #1e293b 0%, #0b1120 40%, #020617 100%);
}

/* dashboard-body fonas aprašytas pačiame dashboard.html,
   kad būtų izoliuotas nuo login. */

/* ===========================
   Top bar (login + dashboard)
   =========================== */

.top-bar {
    height: 56px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.75);
    position: sticky;
    top: 0;
    z-index: 10;
}

.top-bar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar__logo-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fefce8, #22c55e 40%, #15803d 72%);
    box-shadow:
            0 0 20px rgba(34, 197, 94, 0.8),
            0 0 45px rgba(34, 197, 94, 0.6);
}

.top-bar__title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.top-bar__subtitle {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    border-left: 1px solid rgba(148, 163, 184, 0.4);
    padding-left: 10px;
}

/* ===========================
   Login layout
   =========================== */

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-top: 150px;
    justify-content: center;
}

.auth-card {
    max-width: 380px;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-lg);
    padding: 24px 24px 20px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
}

/* Titulai */

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

.auth-card__subtitle {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.auth-card__hint {
    margin: 10px 0 0;
    font-size: 11px;
    color: #6b7280;
}

/* Forma */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-form__label {
    font-size: 12px;
    color: #d1d5db;
}

.auth-form__input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: #020617;
    color: var(--color-text-primary);
    font-size: 13px;
    outline: none;
}

.auth-form__input:focus {
    border-color: #6366f1;
}

/* Klaidos tekstas */

.auth-form__error {
    font-size: 12px;
    color: #fca5a5;
    margin: 0;
}

/* Mygtukas – gradient kaip Exocharts */

.auth-form__button {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-pill);
    border: none;
    margin-top: 4px;

    background: linear-gradient(to right, #4f46e5, #ec4899);
    color: #ffffff;

    font-size: 14px;
    font-weight: 500;
    cursor: pointer;

    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
    transition:
            opacity var(--transition-fast),
            transform var(--transition-fast),
            box-shadow var(--transition-fast);
}

.auth-form__button:hover {
    opacity: 0.96;
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
}

.auth-form__button:active {
    transform: translateY(0);
}

/* ===========================
   Logout box (login + dashboard)
   =========================== */

.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-size: 12px;
    color: #9ca3af;
}

.logout-btn {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    text-decoration: none;

    border: 1px solid rgba(148, 163, 184, 0.4); /* švelniai pilkas */
    color: #cbd5e1; /* šviesiai pilka */
    background: rgba(255, 255, 255, 0.02); /* labai subtilus stiklo efektas */

    transition: 0.18s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.6);
    color: #f1f5f9;
}

/* ===========================
   Responsyvumas
   =========================== */

@media (max-width: 480px) {
    .top-bar {
        padding: 0 16px;
    }

    .auth-card {
        padding: 20px 18px 18px;
    }
}