
:root {
    --bg: #050b14;
    --bg-secondary: #071426;
    --surface: rgba(10, 28, 47, .88);

    --text: #ffffff;
    --muted: #8ca4b8;

    --blue: #168bff;
    --cyan: #27e1ff;

    --border: rgba(92, 190, 255, .18);
}

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

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);

    background:
        radial-gradient(circle at 75% 20%, rgba(22, 139, 255, .19), transparent 30%),
        radial-gradient(circle at 20% 85%, rgba(39, 225, 255, .08), transparent 30%),
        linear-gradient(135deg, #02070d 0%, #071426 55%, #030910 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;

    background-image:
        radial-gradient(circle, rgba(255,255,255,.45) 1px, transparent 1px),
        radial-gradient(circle, rgba(39,225,255,.22) 1px, transparent 1px);

    background-size: 100px 100px, 160px 160px;
    background-position: 0 0, 45px 65px;

    opacity: .16;
}

.auth-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}

.auth-panel {
    position: relative;
    overflow: hidden;

    width: 100%;
    max-width: 470px;

    padding: 42px;

    border: 1px solid var(--border);
    border-radius: 26px;

    background: linear-gradient(
        145deg,
        rgba(13, 34, 55, .94),
        rgba(5, 18, 31, .92)
    );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 30px 90px rgba(0, 60, 110, .28);

    backdrop-filter: blur(18px);
}

.auth-panel::before {
    content: "";

    position: absolute;
    width: 280px;
    height: 280px;

    right: -130px;
    top: -140px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(22,139,255,.24),
        transparent 68%
    );
}

.auth-brand {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 42px;
}

.auth-brand img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 220px;
    object-fit: contain;
}

.auth-brand > span {
    padding: 7px 10px;

    border: 1px solid rgba(39,225,255,.16);
    border-radius: 8px;

    color: var(--cyan);
    background: rgba(7, 37, 56, .62);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
}

.auth-header {
    position: relative;
    z-index: 2;

    margin-bottom: 28px;
}

.auth-kicker {
    display: block;
    margin-bottom: 13px;

    color: var(--cyan);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

.auth-header h1 {
    color: #ffffff;

    font-size: 36px;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.auth-header p {
    margin-top: 14px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.65;
}

.auth-error {
    position: relative;
    z-index: 2;

    margin-bottom: 20px;
    padding: 13px 15px;

    border: 1px solid rgba(255, 104, 104, .25);
    border-radius: 11px;

    color: #ffb3b3;
    background: rgba(95, 18, 18, .30);

    font-size: 12px;
    line-height: 1.5;
}

.auth-form {
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;

    color: #dce9f4;

    font-size: 12px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    min-height: 50px;

    padding: 0 15px;

    border: 1px solid rgba(99, 184, 239, .15);
    border-radius: 12px;
    outline: none;

    color: #ffffff;
    background: rgba(5, 18, 31, .72);

    font-size: 14px;
}

.form-group input:focus {
    border-color: rgba(39,225,255,.48);

    box-shadow:
        0 0 0 3px rgba(39,225,255,.06),
        0 0 24px rgba(0,153,255,.07);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 4px 0 22px;

    color: #8299ad;
    font-size: 12px;
}

.login-button {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 1px solid rgba(79,190,255,.52);
    border-radius: 13px;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #087df0,
        #10a8ed
    );

    box-shadow:
        0 14px 36px rgba(0,126,255,.24),
        inset 0 1px 0 rgba(255,255,255,.20);

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;
}

.auth-security {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 28px;
    padding-top: 22px;

    border-top: 1px solid rgba(92,180,238,.10);
}

.security-dot {
    width: 8px;
    height: 8px;

    margin-top: 5px;

    flex-shrink: 0;
    border-radius: 50%;

    background: var(--cyan);

    box-shadow:
        0 0 8px rgba(39,225,255,.8),
        0 0 16px rgba(39,225,255,.35);
}

.auth-security p {
    color: #627c92;

    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 520px) {
    .auth-panel {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .auth-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-brand img {
        height: 46px;
    }

    .auth-header h1 {
        font-size: 31px;
    }
}
