:root, [data-theme="dark"] {
    --bg-color: #181a1b;
    --accent2: #23272e;
    --border: #30363d;
    --text-main: #e2e6ee;
    --text-muted: #8b949e;
    --primary: #4f8cff;
    --primary-hover: #4080ef;
}

/* Light theme */
[data-theme="light"] {
    --bg-color: #f8f9fb;
    --accent2: #ffffff;
    --border: #e1e4e8;
    --text-main: #24292f;
    --text-muted: #57606a;
    --primary: #0969da;
    --primary-hover: #0550ae;
}

* { box-sizing: border-box; }

[data-theme="light"] body {
    background:
        linear-gradient(135deg, #f8f9fb 0%, #ffffff 50%, #f0f3f6 100%);
}

[data-theme="light"] .login-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 96%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .login-form input {
    background: #f8f9fb;
    border-color: #d0d7de;
    color: #24292f;
}

[data-theme="light"] .login-form input:focus {
    border-color: #0969da;
}

[data-theme="light"] .login-highlights span {
    border-color: rgba(9, 105, 218, 0.35);
    background: rgba(9, 105, 218, 0.08);
    color: #0550ae;
}

[data-theme="light"] .login-form button {
    box-shadow: 0 2px 8px rgba(9, 105, 218, 0.25);
}

[data-theme="light"] .login-form button:hover {
    box-shadow: 0 6px 16px rgba(9, 105, 218, 0.35);
}

[data-theme="light"] .bg-blobs {
    background: linear-gradient(135deg, #f0f3f6 0%, #e8eef4 50%, #f5f7fa 100%);
}

[data-theme="light"] .blob {
    filter: blur(100px);
    opacity: 0.5;
}

[data-theme="light"] .blob-1 {
    background: radial-gradient(circle, rgba(9, 105, 218, 0.4) 0%, rgba(9, 105, 218, 0.12) 40%, transparent 70%);
}

[data-theme="light"] .blob-2 {
    background: radial-gradient(circle, rgba(80, 110, 180, 0.35) 0%, rgba(80, 110, 180, 0.1) 40%, transparent 70%);
}

[data-theme="light"] .blob-3 {
    background: radial-gradient(circle, rgba(9, 105, 218, 0.3) 0%, rgba(9, 105, 218, 0.08) 40%, transparent 70%);
}

[data-theme="light"] .blob-4 {
    background: radial-gradient(circle, rgba(45, 80, 140, 0.35) 0%, rgba(45, 80, 140, 0.1) 40%, transparent 70%);
}

body {
    margin: 0;
    min-height: 100vh;
    background: #0d0f12;
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #0d0f12;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 30s ease-in-out infinite;
    will-change: transform, opacity;
}

.blob-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 140, 255, 0.6) 0%, rgba(79, 100, 200, 0.3) 30%, transparent 70%);
    top: -300px;
    left: -250px;
    animation-delay: 0s;
    animation-duration: 28s;
}

.blob-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(100, 80, 220, 0.55) 0%, rgba(60, 80, 180, 0.25) 30%, transparent 70%);
    top: 20%;
    right: -250px;
    animation-delay: -10s;
    animation-duration: 32s;
}

.blob-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 140, 255, 0.5) 0%, rgba(40, 100, 200, 0.2) 30%, transparent 70%);
    bottom: -200px;
    left: 15%;
    animation-delay: -20s;
    animation-duration: 26s;
}

.blob-4 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(30, 60, 130, 0.6) 0%, rgba(20, 50, 120, 0.25) 30%, transparent 70%);
    bottom: 5%;
    right: 5%;
    animation-delay: -7s;
    animation-duration: 34s;
}

.blob-5 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(120, 160, 255, 0.45) 0%, rgba(80, 120, 200, 0.2) 30%, transparent 70%);
    top: 50%;
    left: 30%;
    animation-delay: -15s;
    animation-duration: 24s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    20% { transform: translate(60px, -50px) scale(1.1) rotate(5deg); }
    40% { transform: translate(-40px, 40px) scale(0.95) rotate(-3deg); }
    60% { transform: translate(50px, 60px) scale(1.05) rotate(4deg); }
    80% { transform: translate(-30px, -30px) scale(1.08) rotate(-5deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

.bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.7;
    pointer-events: none;
}

.orb-a {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 40% 35%, rgba(79, 140, 255, 0.6), rgba(79, 140, 255, 0));
    top: 12%;
    left: 12%;
}

.orb-b {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 40% 35%, rgba(45, 86, 163, 0.6), rgba(45, 86, 163, 0));
    bottom: 8%;
    right: 10%;
}

.login-shell {
    width: min(460px, 92vw);
}

.login-card {
    position: relative;
    background: linear-gradient(180deg, rgba(35, 39, 46, 0.96), rgba(25, 29, 36, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(6px);
}

.login-brand {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 18px;
}

.login-brand img {
    height: 48px;
    width: auto;
}

.login-brand h1 {
    margin: 0;
    font-size: 1.55rem;
    color: var(--primary);
}

.login-brand p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-highlights {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 8px 0 14px;
}

.login-highlights span {
    border: 1px solid rgba(79, 140, 255, 0.35);
    background: rgba(79, 140, 255, 0.1);
    color: #a9c4ff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.login-error {
    border: 1px solid #923;
    background: rgba(175, 34, 56, 0.18);
    color: #ffb8c1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.login-message {
    border: 1px solid #b8860b;
    background: rgba(184, 134, 11, 0.18);
    color: #ffd700;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.login-form {
    display: grid;
    gap: 9px;
}

.login-form label {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    border: 1px solid var(--border);
    background: #101215;
    color: var(--text-main);
    border-radius: 10px;
    padding: 12px;
    outline: none;
}

.login-form input:focus {
    border-color: var(--primary);
}

.login-form button {
    margin-top: 8px;
    border: none;
    border-radius: 9px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: var(--primary);
}

.login-form button:hover {
    background: var(--primary-hover);
}
