:root {
    --tron-blue: #0ff;
    --tron-blue-dark: #07b9bd;
    --tron-blue-glow: rgba(0, 255, 255, 0.7);
    --tron-blue-dim: rgba(0, 255, 255, 0.3);
    --tron-background: #010b15;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--tron-background);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animation de lancement */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--tron-background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 5px;
    background-color: var(--tron-blue);
    box-shadow: 0 0 10px var(--tron-blue-glow), 0 0 20px var(--tron-blue-glow);
    top: 0;
    left: 0;
    animation: scan 2s linear forwards;
}

.logo-ascii {
    font-size: 12px;
    color: transparent;
    line-height: 1.2;
    text-shadow: 0 0 10px var(--tron-blue-glow);
    animation: reveal-logo 3s forwards 0.5s;
    white-space: pre;
    font-family: monospace;
}

.logo-ascii-small {
    font-size: 8px;
    color: var(--tron-blue);
    line-height: 1.2;
    text-shadow: 0 0 5px var(--tron-blue-glow);
    white-space: pre;
    font-family: monospace;
    margin-bottom: 15px;
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(transparent 49%, var(--tron-blue-dim) 50%, transparent 51%) center,
        linear-gradient(90deg, transparent 49%, var(--tron-blue-dim) 50%, transparent 51%) center;
    background-size: 100px 100px;
    opacity: 0;
    animation: show-grid 2s forwards 2.5s;
}

/* Grille de fond */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(transparent 98%, var(--tron-blue-dim) 100%) center,
        linear-gradient(90deg, transparent 98%, var(--tron-blue-dim) 100%) center;
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.3;
}

/* Particules en arrière-plan */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.particles::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background-image: radial-gradient(var(--tron-blue-dim) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: particle-movement 20s infinite linear;
}

/* Container d'authentification */
#auth-container {
    width: 100%;
    max-width: 450px;
    padding: 30px;
    background: rgba(1, 11, 21, 0.8);
    border: 1px solid var(--tron-blue);
    border-radius: 5px;
    box-shadow: 0 0 20px var(--tron-blue-dim), inset 0 0 10px var(--tron-blue-dim);
    backdrop-filter: blur(5px);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in 1s forwards 3.5s;
    display: none;
}

.auth-page {
    display: none;
}

.auth-page.active {
    display: block;
}

h1 {
    color: var(--tron-blue);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--tron-blue-glow);
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--tron-blue);
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--tron-blue-dark);
    border-radius: 3px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--tron-blue);
    box-shadow: 0 0 10px var(--tron-blue-glow);
}

.input-glow {
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--tron-blue);
    box-shadow: 0 0 10px var(--tron-blue-glow);
    transition: width 0.3s ease, left 0.3s ease;
    opacity: 0;
}

input:focus + .input-glow {
    width: 100%;
    left: 0;
    opacity: 1;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    margin-right: 10px;
}

.checkbox label {
    margin-bottom: 0;
}

button.identity-disc {
    width: 100%;
    padding: 12px;
    background: radial-gradient(circle, var(--tron-blue-dark) 0%, transparent 70%);
    border: 2px solid var(--tron-blue);
    border-radius: 50px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button.identity-disc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--tron-blue) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

button.identity-disc:hover {
    box-shadow: 0 0 15px var(--tron-blue-glow);
}

button.identity-disc:hover::before {
    opacity: 0.2;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-switch a {
    color: var(--tron-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-switch a:hover {
    text-shadow: 0 0 5px var(--tron-blue-glow);
}

/* Animations */
@keyframes scan {
    0% { top: -5px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes reveal-logo {
    0% { color: transparent; filter: blur(2px); }
    50% { color: var(--tron-blue); filter: blur(1px); }
    100% { color: var(--tron-blue); filter: blur(0px); }
}

@keyframes show-grid {
    0% { opacity: 0; }
    100% { opacity: 0.2; }
}

@keyframes fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes particle-movement {
    0% { transform: translate(0, 0); }
    25% { transform: translate(10px, 10px); }
    50% { transform: translate(0, 20px); }
    75% { transform: translate(-10px, 10px); }
    100% { transform: translate(0, 0); }
}

/* Animation de transition entre les pages */
@keyframes page-transition-out {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-20px); }
}

@keyframes page-transition-in {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.page-exit {
    animation: page-transition-out 0.3s forwards;
}

.page-enter {
    animation: page-transition-in 0.3s forwards;
}
