* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

canvas#matrix {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    background: black;
}

body.light #matrix {
    background: #f4f4f4;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 1.5rem;
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
    z-index: 2;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.4);
}

.login-container {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    width: 320px;
    text-align: center;
    animation: fadeIn 1s ease;
    z-index: 1;
}

.login-container h2 {
    margin-bottom: 10px;
    color: #fff;
}

.login-container p {
    color: #eee;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #fff;
    color: #fff;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group label {
    position: absolute;
    left: 0;
    top: 10px;
    color: #ddd;
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #0f0;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -15px;
    font-size: 0.8rem;
    color: #0f0;
}

button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(120deg, #0f0, #00ff99);
    border: none;
    border-radius: 25px;
    color: #000;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

button:hover {
    transform: scale(1.05);
}

.signup-link {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #fff;
}

.signup-link a {
    color: #0f0;
    text-decoration: none;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
