:root {
    --color-bg-dark: #0a3d37;
    --color-bg-mid: #12564c;
    --color-bg-light: #1d6e5f;
    --color-accent-pink: #ec1558;
    --color-accent-blue: #2e9bd6;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.72);
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: var(--font-main);
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-mid) 45%, var(--color-bg-light) 100%);
}

#login-node-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    display: block;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: min(400px, 100%);
    padding: 40px 36px;
    background: rgba(8, 30, 27, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.login-brand {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    text-align: center;
}
.login-brand-name { font-size: 20px; font-weight: 600; letter-spacing: 0.5px; }
.login-brand-sub { font-size: 12px; font-weight: 300; color: var(--color-text-muted); letter-spacing: 1.5px; text-transform: uppercase; }

.login-title { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.login-subtitle { font-size: 13px; font-weight: 300; color: var(--color-text-muted); margin-bottom: 24px; line-height: 1.5; }

.login-error {
    padding: 11px 13px;
    margin-bottom: 18px;
    border-radius: 9px;
    background: rgba(236, 21, 88, 0.13);
    border: 1px solid rgba(236, 21, 88, 0.35);
    color: #ffb3ca;
    font-size: 12.5px;
    line-height: 1.5;
}

.login-form { display: flex; flex-direction: column; gap: 16px; }

.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field span { font-size: 12px; color: var(--color-text-muted); letter-spacing: 0.3px; }
.login-field input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}
.login-field input:focus { border-color: var(--color-accent-blue); box-shadow: 0 0 0 3px rgba(46, 155, 214, 0.18); }

.login-submit {
    margin-top: 8px;
    padding: 13px;
    border: none;
    border-radius: 999px;
    background: var(--color-accent-pink);
    color: #fff;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}
.login-submit:hover { background: #ff1f66; }

.login-forgot-link {
    display: block;
    margin-top: 20px;
    text-align: center;
    font-size: 12.5px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.login-forgot-link:hover { color: var(--color-accent-blue); }

@media (max-width: 480px) {
    .login-card { padding: 32px 24px; }
}