/* === General Styles (applies to both pages) === */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Poppins', Arial, sans-serif;
    box-sizing: border-box;
}

/* === Login Page Styles === */
body {
    /* Default dark background for login page */
    background: #181824;
    color: white;
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Particle canvas background for login */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Login box */
.login-container {
    position: relative;
    z-index: 1;
    background: rgba(34, 34, 54, 0.75);
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    width: 340px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.12);
}

.login-logo {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    user-select: none;
}

.login-title {
    font-weight: 600;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

input[type="text"], input[type="password"] {
    width: 90%;
    padding: 0.65rem 1rem;
    margin: 0.5rem auto 1rem auto;
    display: block;
    border: none;
    border-radius: 8px;
    background-color: rgba(40, 40, 60, 0.95);
    color: #fff;
    font-size: 1.05rem;
    font-family: 'Poppins', Arial, sans-serif;
    box-shadow: 0 2px 6px rgba(98, 0, 234, 0.04);
    outline: none;
    transition: box-shadow 0.2s;
}
input[type="text"]:focus, input[type="password"]:focus {
    box-shadow: 0 0 0 2px #7c4dff55;
}
input[type="text"]::placeholder, input[type="password"]::placeholder {
    color: #bbb;
    font-size: 1rem;
}

button {
    background: linear-gradient(90deg, #7c4dff 0%, #00bcd4 100%);
    color: white;
    border: none;
    padding: 0.8rem 2.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(98, 0, 234, 0.15);
    transition: background 0.3s, transform 0.2s;
}
button:hover {
    background: linear-gradient(90deg, #00bcd4 0%, #7c4dff 100%);
    transform: translateY(-2px) scale(1.03);
}
.error {
    color: #ff5252;
    margin-top: 1rem;
    font-size: 1rem;
    min-height: 1.2em;
}
