/* ===== GENERAL ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #05010a;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
}

/* ===== LOGIN SCREENS ===== */
.login-screen {
    height: 100vh;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ===== GLITCH TITLE ===== */
.glitch {
    font-size: 2rem;
    color: #f500ff;
    text-shadow:
        0 0 2px #000,
        0 0 5px #f500ff,
        0 0 10px #f500ff,
        0 0 20px #00f7ff;
    animation: glitchText 1s infinite;
}

@keyframes glitchText {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 2px); }
    40% { transform: translate(3px, -2px); }
    60% { transform: translate(-2px, 1px); }
    80% { transform: translate(2px, -1px); }
    100% { transform: translate(0); }
}

/* ===== INPUT ===== */
.login-screen input {
    padding: 12px 20px;
    border: 2px solid #00f7ff;
    background: transparent;
    color: #00f7ff;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    width: 250px;
    text-shadow: 0 0 5px #00f7ff;
    box-shadow: 0 0 10px #00f7ff;
    margin-top: 20px;
}

/* ===== BUTTON ===== */
.login-screen button {
    margin-top: 20px;
    padding: 12px 25px;
    background: #f500ff;
    border: none;
    border-radius: 8px;
    color: black;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    box-shadow:
        0 0 10px #f500ff,
        0 0 20px #f500ff;
    transition: 0.2s ease;
}

.login-screen button:hover {
    background: #00f7ff;
    box-shadow:
        0 0 10px #00f7ff,
        0 0 20px #00f7ff;
}

/* ===== ACCESS GRANTED ===== */
#access-granted {
    display: none;
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100vw;
    background: #000;
    color: #00f7ff;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
}

#access-granted h1 {
    margin: 0;
    font-size: 3rem;
    text-shadow:
        0 0 2px #000,
        0 0 5px #00f7ff,
        0 0 10px #00f7ff,
        0 0 20px #f500ff,
        0 0 40px #f500ff;
    animation: glitchText 0.8s infinite;
}

/* CRT EFFECT */
#access-granted.crt {
    overflow: hidden;
}

#access-granted.crt::before,
#access-granted.crt::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

#access-granted.crt::before {
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.03) 0px,
        rgba(255, 255, 255, 0.03) 2px,
        transparent 2px,
        transparent 4px
    );
}

#access-granted.crt::after {
    background: radial-gradient(circle, transparent 60%, rgba(0,0,0,0.4));
}

/* FADE OUT */
@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* ===== MAIN CONTENT ===== */
#main-content {
    display: none;
    min-height: 100vh;
    padding: 40px;
    background: #fdfcf7;
    font-family: 'Poppins', sans-serif;
    color: #333;
    position: relative;
}

/* Hoja rayada */
#main-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 34px,
        rgba(5, 10, 14, 0.15) 35px
    );
    z-index: 0;
}

/* Margen rojo */
#main-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 60px;
    width: 3px;
    height: 100%;
    background: rgba(255, 0, 0, 0.3);
    z-index: 0;
}

/* Títulos */
#main-content h1 {
    font-size: 2.4rem;
    color: #ff6fa8;
    text-shadow: 1px 1px 0 #fff;
    margin-left: 80px;
    position: relative;
    z-index: 1;
}

/* Párrafos */
#main-content p {
    font-size: 1.2rem;
    margin-left: 80px;
    margin-bottom: 25px;
    color: #444;
    position: relative;
    z-index: 1;
}

/* Tarjetas */
.card {
    background: #fff9c4;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 3px 3px 0 #e0d890;
    border: 2px dashed #d4c96f;
    transform: rotate(-1deg);
    position: relative;
    z-index: 1;
}

.card h2 {
    font-size: 1.6rem;
    color: #5c8aff;
    margin-bottom: 10px;
}

/* Botones */
.btn {
    display: inline-block;
    background: #aee6ff;
    color: #333;
    padding: 12px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 2px 2px 0 #7dc4e0;
    transition: 0.2s ease;
}

.btn:hover {
    background: #c8f1ff;
    transform: translateY(-2px);
}

/* Espiral */
.spiral {
    position: absolute;
    top: 20px;
    left: 15px;
    width: 20px;
    height: calc(100% - 40px);
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 25px,
        #555 26px,
        #555 32px
    );
    border-radius: 10px;
    z-index: 2;
}

.neon-welcome {
    color: #00f7ff;
    text-shadow:
        0 0 2px #000,
        0 0 5px #00f7ff,
        0 0 10px #00f7ff,
        0 0 20px #f500ff,
        0 0 40px #f500ff;
    animation: glitchText 1s infinite;
    text-align: center;
    margin: 0 20px;
}

#welcome-screen h1 {
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
}


#welcome-screen {
    display: none;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.neon-button {
    margin-top: 20px;
    padding: 12px 25px;
    background: #f500ff !important;
    border: none;
    border-radius: 8px;
    color: black !important;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    box-shadow:
        0 0 10px #f500ff,
        0 0 20px #f500ff,
        0 0 40px #f500ff;
    transition: 0.2s ease;
}

.neon-button:hover {
    background: #00f7ff !important;
    box-shadow:
        0 0 10px #00f7ff,
        0 0 20px #00f7ff,
        0 0 40px #00f7ff;
}

