﻿:root {
    /* Typography */
    --font-sans: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

    /* Backgrounds */
    --bg: #05070b;              /* майже чорний */
    --surface: #070a10;         /* картки/панелі */
    --surface-2: #0b0f18;       /* hover/active */

    /* Text */
    --text: #e7eefc;
    --muted: rgba(231, 238, 252, 0.62);

    /* Accent (неон-блакитний як на скрінах) */
    --accent: #2aa7ff;
    --accent-2: #7c3aed;        /* легкий фіолет для градієнтних акцентів */

    /* Borders / glow */
    --border: rgba(42, 167, 255, 0.45);
    --border-soft: rgba(255, 255, 255, 0.10);
    --glow: 0 0 0 1px rgba(42, 167, 255, 0.35), 0 0 22px rgba(42, 167, 255, 0.12);

    /* Radii */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 22px;

    /* Spacing */
    --s-1: 6px;
    --s-2: 10px;
    --s-3: 14px;
    --s-4: 18px;
    --s-5: 24px;
    --s-6: 32px;

    /* Layout */
    --sidebar-w-collapsed: 84px;
    --sidebar-w-open: 320px;

    /* Card */
    --card-bg: rgba(10, 14, 22, 0.72);
    --card-border: rgba(42, 167, 255, 0.55);
}
.oauth-list{
    width: min(520px, 92vw);
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: center;
}

.oauth-form{
    width: 100%;
    margin: 0;
}

.oauth-button{
    width: 100%;
    height: 68px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #111;
    font-weight: 600;
    font-size: 18px;

    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;

    padding: 0 22px;
    box-shadow: 0 14px 30px rgba(0,0,0,.25);
    cursor: pointer;

    transition: transform .12s ease, box-shadow .12s ease;
}

.oauth-button:hover{
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(0,0,0,.30);
}

.oauth-button:active{
    transform: translateY(0px);
}

.oauth-logo{
    width: 22px;
    height: 22px;
    justify-self: center;
}

.oauth-text{
    justify-self: center;
    white-space: nowrap;
}

.oauth-button:focus{
    outline: none;
}
.oauth-button:focus-visible{
    outline: 2px solid rgba(80, 140, 255, .55);
    outline-offset: 3px;
}
/* ===== Mobile header ===== */
.sg-topbar{
    display: none;
    position: sticky;
    top: 0;
    z-index: 50;
    height: 56px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;

    background: rgba(7,9,13,0.72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sg-topbar-brand{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.92);
}

.sg-dot{
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: radial-gradient(circle at 30% 30%, rgba(120,180,255,0.9), rgba(60,90,255,0.25));
    box-shadow: 0 0 0 1px rgba(120,180,255,0.22);
}

.sg-topbar-title{
    font-size: 13px;
    letter-spacing: 0.18em;
    opacity: 0.9;
}

/* burger */
.sg-nav-toggle{ display: none; }

.sg-burger{
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
}

.sg-burger span{
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 99px;
    flex-shrink: 0;
}

/* overlay */
.sg-overlay{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0,0,0,0.55);
}

/* ===== Mobile layout ===== */
@media (max-width: 900px){
    .sg-topbar{ display: flex; }

    .sg-app{ grid-template-columns: 1fr; }

    .sg-sidebar{
        position: fixed;
        top: 56px;
        left: 0;
        bottom: 0;
        width: min(92vw, 340px);
        z-index: 45;

        transform: translateX(-105%);
        transition: transform 180ms ease;

        background: rgba(7,9,13,0.86);
        backdrop-filter: blur(12px);

        border-right: 1px solid rgba(255,255,255,0.10);
        box-shadow: 0 12px 50px rgba(0,0,0,0.55);
        overflow: auto;
    }

    .sg-main{ min-height: calc(100vh - 56px); }
    .sg-main-inner{ padding: 18px 16px; max-width: 100%; }

    /* відкриття меню */
    .sg-nav-toggle:checked ~ .sg-overlay{ display: block; }
    .sg-nav-toggle:checked ~ .sg-sidebar{ transform: translateX(0); }
}
