.login-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: floatOrb linear infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #00ff88;
    top: -150px;
    left: -100px;
    animation-duration: 18s;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #00ccff;
    bottom: -100px;
    right: -80px;
    animation-duration: 22s;
    animation-delay: -7s;
    opacity: 0.12;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #00ff88;
    top: 50%;
    right: 10%;
    animation-duration: 15s;
    animation-delay: -3s;
    opacity: 0.1;
}

.orb-4 {
    width: 250px;
    height: 250px;
    background: #7c3aed;
    bottom: 20%;
    left: 5%;
    animation-duration: 20s;
    animation-delay: -10s;
    opacity: 0.1;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(40px, -50px) scale(1.05);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }

    75% {
        transform: translate(50px, 20px) scale(1.03);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Grid scanline overlay */
.login-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Login wrapper */
.login-wrapper {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 3rem auto 0;
    animation: slideInUp 0.6s ease-out both;
}

/* Brand */
.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand .logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    background: linear-gradient(135deg, #e4e7eb 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.login-brand .logo-dot {
    color: #00ff88;
    -webkit-text-fill-color: #00ff88;
}

.login-brand p {
    color: #8b92a0;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-family: 'Space Mono', monospace;
}

/* Card */
.card {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow:
        0 0 0 1px rgba(0, 255, 136, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 255, 136, 0.06);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e4e7eb;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #00ff88;
    border-radius: 2px;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #8b92a0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #e4e7eb;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.08), 0 0 20px rgba(0, 255, 136, 0.08);
}

.form-group input::placeholder {
    color: #4b5260;
}

/* Field error */
.field-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.4rem;
    font-family: 'Space Mono', monospace;
}

/* Submit Button */
.btn-register {
    width: 100%;
    background: #00ff88;
    color: #0a0e1a;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.35);
    margin-top: 0.5rem;
    letter-spacing: 0.3px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.55);
}

.btn-register:active {
    transform: translateY(0);
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #8b92a0;
    font-size: 0.875rem;
}

.login-link a {
    color: #00ff88;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.login-link a:hover {
    opacity: 0.8;
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        margin-top: 1.5rem;
    }

    .card {
        padding: 1.75rem;
    }
}