:root {
    --bg: #09090d;
    --panel: #0f0f17;
    --line: #1f2937;
    --text: #f8fafc;
    --muted: #9ca3af;
    --blue: #2563eb;
    --blue-soft: #60a5fa;
    --accent: #d90b0b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #080808;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 100% at 50% 100%, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.96));
    z-index: 0;
}

a { color: inherit; text-decoration: none; }

.login-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.nav {
    display: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand img {
    display: block;
    height: 58px;
    width: auto;
    object-fit: contain;
    transform-origin: center;
    animation: nemesis-logo-glow 2.6s ease-in-out infinite;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transition: 0.18s ease;
    font: inherit;
}

.button:hover {
    border-color: var(--blue-soft);
    color: var(--blue-soft);
}

.button.primary {
    background: #d90b0b;
    border-color: transparent;
}

.button.primary:hover {
    color: var(--text);
    transform: translateY(-1px);
    background: #b50909;
}

.button.webloader-style {
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #5a0e0e;
    background: rgba(18, 9, 11, 0.8);
    color: #fca5a5;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 12px;
    font-weight: 600;
    will-change: transform, filter;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.button.webloader-style:hover {
    color: #fca5a5;
    border-color: #d31414;
    transform: translateY(-1px);
    filter: drop-shadow(0 0 16px rgba(211, 20, 20, 0.85));
}

.button.webloader-style:focus {
    outline: none;
    border-color: #d31414;
    box-shadow: 0 0 0 2px rgba(211, 20, 20, 0.6);
}

.button.full-width {
    width: 100%;
}

.layout {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 64px;
    min-height: calc(100vh - 180px);
}

.login-shell {
    width: min(100%, 440px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.card {
    background: #1a1a1a;
    border: none;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    width: 100%;
    backdrop-filter: blur(10px);
}

.card-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.card-brand img {
    display: block;
    height: 58px;
    width: auto;
    object-fit: contain;
    transform-origin: center;
    animation: nemesis-logo-glow 2.6s ease-in-out infinite;
}

.card h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.card p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.6;
}

.login-error {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(217, 11, 11, 0.45);
    background: rgba(127, 29, 29, 0.18);
    color: #fecaca;
    line-height: 1.6;
    font-size: 14px;
}

.field {
    margin-bottom: 16px;
}

.label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
}

.input-wrap {
    position: relative;
}

.input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #080808;
    padding: 12px 48px 12px 16px;
    color: #e4e4e7;
    font: inherit;
    font-size: 15px;
    letter-spacing: 0.02em;
    outline: none;
    box-shadow: none;
}

.input:focus {
    border-color: transparent;
    outline: none;
    box-shadow: none;
}

.input::placeholder {
    color: #71717a;
}

.input-indicator {
    pointer-events: none;
    position: absolute;
    right: 12px;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #7b2328;
    box-shadow: 0 0 10px rgba(123, 35, 40, 0.45);
}

.input-wrap:focus-within .input-indicator {
    background: #d31414;
    box-shadow:
        0 0 10px rgba(211, 20, 20, 0.65),
        0 0 18px rgba(211, 20, 20, 0.45);
}

@keyframes nemesis-logo-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 6px rgba(211, 20, 20, 0.45));
    }

    50% {
        transform: scale(1.035);
        filter: drop-shadow(0 0 16px rgba(211, 20, 20, 0.7));
    }
}

.meta {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.meta a {
    color: var(--blue-soft);
}

@media (max-width: 900px) {
    .nav {
        padding-bottom: 8px;
    }

    .layout {
        min-height: auto;
        padding-top: 24px;
    }
}
