* {
    box-sizing: border-box;
}

:root {
    --bg-main: #08111f;
    --bg-deep: #050a13;
    --card: rgba(15, 25, 42, 0.84);
    --card-light: rgba(255, 255, 255, 0.075);
    --line: rgba(255, 255, 255, 0.12);

    --text: #f8fafc;
    --muted: #94a3b8;
    --muted2: #64748b;

    --green: #22c55e;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --yellow: #facc15;
    --red: #ef4444;

    --radius-lg: 28px;
    --radius-md: 20px;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text);
}

/* общий красивый фон */
body {
    background:
        radial-gradient(circle at 10% 10%, rgba(34, 197, 94, 0.22), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.24), transparent 30%),
        radial-gradient(circle at 55% 100%, rgba(6, 182, 212, 0.13), transparent 34%),
        linear-gradient(135deg, #07111f 0%, #0f172a 48%, #10244a 100%);
    background-attachment: fixed;
}

/* лёгкая сетка на фоне */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
}

/* =========================
   LOGIN
========================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 30px;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045)),
        rgba(8, 17, 31, 0.82);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(circle at 20% 0%, rgba(34,197,94,0.35), transparent 32%),
        radial-gradient(circle at 100% 20%, rgba(59,130,246,0.32), transparent 30%);
    pointer-events: none;
    z-index: -1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 21px;
    background:
        linear-gradient(135deg, rgba(34,197,94,1), rgba(59,130,246,1));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 950;
    box-shadow:
        0 14px 35px rgba(37, 99, 235, 0.34),
        inset 0 1px 0 rgba(255,255,255,0.35);
}

.brand-title {
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.055em;
    color: #ffffff;
    text-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.brand-subtitle {
    margin-top: 2px;
    color: var(--muted);
    font-size: 14px;
}

label {
    display: block;
    margin: 16px 0 8px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 800;
}

input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 17px;
    padding: 16px 17px;
    font-size: 17px;
    outline: none;
    background: rgba(2, 6, 23, 0.42);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

input::placeholder {
    color: #718096;
}

input:focus {
    border-color: rgba(34, 197, 94, 0.85);
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.14),
        0 0 28px rgba(34, 197, 94, 0.16);
}

button {
    width: 100%;
    margin-top: 24px;
    border: 0;
    border-radius: 18px;
    padding: 17px;
    font-size: 18px;
    font-weight: 900;
    color: white;
    background:
        linear-gradient(135deg, #16a34a 0%, #0891b2 48%, #2563eb 100%);
    cursor: pointer;
    box-shadow:
        0 18px 45px rgba(37, 99, 235, 0.32),
        inset 0 1px 0 rgba(255,255,255,0.28);
    transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

button:hover {
    filter: brightness(1.08);
    box-shadow:
        0 22px 55px rgba(37, 99, 235, 0.42),
        inset 0 1px 0 rgba(255,255,255,0.32);
}

button:active {
    transform: scale(0.985);
}

.error {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.13);
    border: 1px solid rgba(239, 68, 68, 0.34);
    color: #fecaca;
    font-weight: 800;
    font-size: 14px;
}

/* =========================
   DASHBOARD
========================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 16px 22px;
    background: rgba(3, 7, 18, 0.68);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-title {
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.055em;
    color: #ffffff;
}

.top-subtitle {
    margin-top: 1px;
    font-size: 13px;
    color: var(--muted);
}

.logout {
    text-decoration: none;
    color: #dbeafe;
    font-weight: 900;
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.11);
}

.logout:hover {
    background: rgba(255,255,255,0.13);
}

.main {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 22px;
}

.hello-card {
    position: relative;
    padding: 28px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 8% 0%, rgba(34,197,94,0.32), transparent 34%),
        radial-gradient(circle at 100% 30%, rgba(59,130,246,0.30), transparent 34%),
        linear-gradient(135deg, rgba(15,23,42,0.92), rgba(15,23,42,0.58));
    color: white;
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hello-card::after {
    content: "GAZONA";
    position: absolute;
    right: -8px;
    bottom: -22px;
    font-size: 86px;
    font-weight: 950;
    letter-spacing: -0.08em;
    color: rgba(255,255,255,0.045);
}

.hello-small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.hello-name {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    font-size: 30px;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.hello-id {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    color: #bfdbfe;
    font-size: 14px;
    font-weight: 700;
}

.grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tile {
    position: relative;
    min-height: 142px;
    padding: 22px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045)),
        rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 16px 48px rgba(0,0,0,0.22);
    overflow: hidden;
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.tile::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -44px;
    top: -44px;
    border-radius: 50%;
    background: rgba(34,197,94,0.16);
}

.tile:nth-child(2)::before {
    background: rgba(59,130,246,0.18);
}

.tile:nth-child(3)::before {
    background: rgba(6,182,212,0.17);
}

.tile:nth-child(4)::before {
    background: rgba(250,204,21,0.15);
}

.tile:hover {
    transform: translateY(-3px);
    border-color: rgba(34,197,94,0.35);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.115), rgba(255,255,255,0.055)),
        rgba(15, 23, 42, 0.82);
}

.tile-title {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.035em;
    color: #ffffff;
}

.tile-text {
    position: relative;
    z-index: 1;
    margin-top: 9px;
    color: var(--muted);
    line-height: 1.4;
    font-size: 15px;
}

/* маленькие декоративные статусы, можно потом использовать */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.22);
    color: #bbf7d0;
    font-size: 13px;
    font-weight: 800;
}

.badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px var(--green);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {
    .login-page {
        align-items: flex-start;
        padding-top: 42px;
    }

    .login-card {
        padding: 24px;
        border-radius: 30px;
    }

    .brand-logo {
        width: 54px;
        height: 54px;
        border-radius: 19px;
    }

    .brand-title {
        font-size: 30px;
    }

    .topbar {
        padding: 14px 16px;
    }

    .main {
        padding: 16px;
    }

    .hello-card {
        padding: 23px;
        border-radius: 28px;
    }

    .hello-card::after {
        font-size: 58px;
        right: -6px;
        bottom: -14px;
    }

    .hello-name {
        font-size: 25px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .tile {
        min-height: 124px;
        border-radius: 24px;
    }
}