/* entrada.css */
:root {
    --color-fondo: #f0f0f0;
    --color-texto: #1a1a1a;
    --color-principal: #007BFF;
    --color-acento: #28a745;
    --color-error: #dc3545;
    --color-input: #ffffff;
    --color-sombra: rgba(0, 0, 0, 0.1);
    --fuente-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --color-logo: #c3d6f5;
}

/* Modo oscuro */
body.dark {
    --color-fondo: #1c1c1c;
    --color-texto: #e0e0e0;
    --color-input: #2e2e2e;
    --color-sombra: rgba(255, 255, 255, 0.05);
    --color-logo: #f1c40f; 
}

/* Estilo base */
body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--fuente-principal);
    margin: 0;
    padding: 0;    
}

.terminal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    
}

.terminal {
    background-color: var(--color-input);
    border-radius: 10px;
    box-shadow: 0 10px 25px var(--color-sombra);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    border: 1px solid #ccc;
}

/* Cabecera tipo terminal */
.terminal-header {
    background-color: #2e2e2e;
    color: #fff;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-button.close {
    background-color: #e74c3c;
}

.terminal-button.minimize {
    background-color: #f1c40f;
}

.terminal-button.maximize {
    background-color: #2ecc71;
}

.terminal-title {
    font-weight: bold;
    font-size: 0.9rem;
}

/* Contenido */
.terminal-body {
    padding: 20px;
}

.login-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hacker-text {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: bold;
    color: var(--color-principal);
}

.glitch {
    font-family: monospace;
    font-size: 1.4rem;
    color: var(--color-error);
    text-align: center;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%,
    100% {
        text-shadow: 1px 0 red, -1px 0 cyan;
    }

    25% {
        text-shadow: -1px -1px red, 1px 1px cyan;
    }

    50% {
        text-shadow: 1px 1px red, -1px -1px cyan;
    }

    75% {
        text-shadow: -1px 1px red, 1px -1px cyan;
    }
}

/* Inputs */
.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.input-group input {
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: var(--color-input);
    color: var(--color-texto);
    transition: border-color 0.3s;
    width: 100%; /* Ensure input takes full width */
    box-sizing: border-box; /* Include padding/border in width */
}

.input-group input:focus {
    border-color: var(--color-principal);
    outline: none;
}

/* Password con botón de mostrar */
.password-wrapper {
    position: relative;
    width: 100%; /* Ensure wrapper takes full width */
}

.password-wrapper input {
    width: 100%; /* Ensure input takes full width */
    padding-right: 30px; /* Space for the button */
    box-sizing: border-box; /* Include padding/border in width */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    /* Adjust positioning for better alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 4px); /* Match input height */
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* Botón login */
.login-button {
    padding: 12px;
    background-color: var(--color-principal);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #0056b3;
}

.login-button.loading .button-text {
    visibility: hidden;
}

.button-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.login-button.loading .button-loading {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}



/* IMAGEN LOGO*/
.logo-login {
    margin-top: 20px;
    text-align: center;    
    background-color: var(--color-logo);
    border-radius: 10px;
    box-shadow: 0 5px 10px var(--color-sombra);
    overflow: hidden;    
    border: 1px solid #ccc;   
}
   


.logo-login img {
    width: 250px;   /* ajusta el tamaño según tu diseño */
    height: auto;
    opacity: 0.85;  /* opcional, para hacerlo más elegante */
    transition: transform 0.3s ease;
    
}

.logo-login img:hover {
    transform: scale(1.05); /* pequeño zoom al pasar el mouse */
}




/* Responsive */
@media (max-width: 1024px) {
    .terminal {
        max-width: 100%;
    }
    
}

/* Alternar modo oscuro */
.toggle-dark {
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--color-principal);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    z-index: 999;
}