/* --- RESET --- */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* --- FOND GALAXIE --- */
body {
    background: radial-gradient(circle at 20% 20%, #1a1a2e, #0f0f1a 60%, #000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- COUCHES PARALLAX --- */
#bg-layer1, #bg-layer2, #bg-layer3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
}

#bg-layer1 { z-index: -3; }
#bg-layer2 { z-index: -4; }
#bg-layer3 { z-index: -5; }

/* --- ÉTOILES (UNE SEULE DÉFINITION) --- */
.star {
    position: absolute;
    border-radius: 50%;
    animation: twinkle ease-in-out infinite;
}

/* scintillement indépendant */
@keyframes twinkle {
    0%   { opacity: 0.3; transform: scale(1); }
    50%  { opacity: 1;   transform: scale(1.3); }
    100% { opacity: 0.3; transform: scale(1); }
}

/* --- SHOOTING STARS --- */
.shooting-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    transform: translate(-50%, -50%);
    z-index: -10;
    box-shadow: 0 0 12px rgba(120,160,255,0.8);
}

.shooting-trail {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, white, transparent);
    opacity: 1;
    border-radius: 2px;
    transform-origin: 0% 50%; /* la traînée part du début */
    transition: opacity 0.4s ease-out;
    z-index: -10;
    background: linear-gradient(90deg, rgba(255,255,255,1), rgba(150,180,255,0));
}




/* --- CONSTELLATION BOLUS --- */
#bolus-stars {
    position: absolute;
    top: 10vh;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.bolus-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.bolus-line {
    position: absolute;
    height: 1.5px;
    background: white;
    opacity: 0.85;
    transform-origin: left center;
}

/* --- LOGIN CARD --- */

@keyframes loginFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(1.05);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.login-card {
    backdrop-filter: blur(22px);
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.04)
    );
    padding: 30px;
    padding-bottom: 0;
    width: 350px;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.45), 0 0 12px rgba(255,255,255,0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;

    /* fade-in */
    opacity: 0;
    animation: loginFadeIn 1.2s ease-out forwards;
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: white;
    margin: 0;
    text-shadow: 0 0 6px rgba(0,0,0,0.45);
}

.login-subtitle {
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: rgba(255,255,255,0.85);
    margin: 0;
    letter-spacing: 0.3px;
    text-shadow: 0 0 4px rgba(0,0,0,0.35);
}

.login-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0),
        rgba(255,255,255,0.20),
        rgba(255,255,255,0)
    );
    margin: 10px 0 10px 0;
}

.login-card label {
    font-size: 14px;
    font-weight: 600; 
    color: rgba(250, 250, 250, 0.92);
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    text-shadow: 0 0 4px rgba(0,0,0,0.35); 
    
}

.login-card input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.25); /* + lisible */
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    box-sizing: border-box;
    backdrop-filter: blur(4px);
}

.login-card input::placeholder {
    font-family: inherit;           
    font-size: 15px;                
    color: rgba(255,255,255,0.75);   
    opacity: 1;                      
}
.login-card input:hover {
    background: rgba(255,255,255,0.30);
    border-color: rgba(255,255,255,0.45);
}

.login-card input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 0 4px rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.40);
}
.login-card input[type="date"] {
    font-family: inherit;
    font-size: 15px;
    color: rgba(255,255,255,0.75);
}

.login-card input[type="date"]::placeholder {
    font-family: inherit;
    font-size: 15px;
    color: rgba(255,255,255,0.75);
}

.login-card button {
    width: 100%;
    padding: 12px;
    background: #3A6DFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s ease;
    margin-top: 24px;
    margin-bottom: 0px;
}

.login-card button:hover {
    background: #5C85FF;
    transform: translateY(2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}