/* Estilos generales modernos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-size: 1rem;
    overflow-x: hidden;
}

/* Fondo animado con partículas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes particleFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

/* Contenedor para centrar todo */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Formulario moderno con glassmorphism */
form {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}

form:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Inputs modernos */
.inputGroup {
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Efecto al enfocar */
input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

input:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

/* Ajuste del checkbox de mostrar contraseña */
#showPasswordToggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 5px;
}

#showPasswordCheck {
    width: 16px;
    height: 16px;
    cursor: pointer;
}



/* Botones modernos con colores vino tinto originales */
button {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #5d0e41, #870a30, #a0123a);
    border: none;
    color: white;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(93, 14, 65, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Efecto de ondas al hacer hover */
button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

button:hover::before {
    width: 300px;
    height: 300px;
}

/* Efectos hover y active con vino tinto */
button:hover {
    background: linear-gradient(135deg, #870a30, #b01748, #d42c5e);
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px rgba(135, 10, 48, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

button:active {
    transform: translateY(-1px);
    box-shadow: 
        0 5px 15px rgba(93, 14, 65, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Efecto de carga */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.9; }
}

/* Títulos y headers modernos */
h1, h2, h3 {
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #f8f9fa, #e9ecef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

@keyframes titleGlow {
    0% { 
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    100% { 
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }
}

/* Subtítulos y descripciones */
p, .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
}

/* Logo o icono principal */
.logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}






/* Checkbox moderno */
#showPasswordToggle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

#showPasswordToggle:hover {
    color: #ffffff;
}

/* Ocultar el checkbox predeterminado */
#showPasswordCheck {
    display: none;
}

/* Estilo del nuevo checkbox moderno */
#showPasswordToggle::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Cuando el checkbox está marcado */
#showPasswordCheck:checked + #showPasswordToggle::before {
    background: linear-gradient(135deg, #5d0e41, #870a30);
    border-color: #870a30;
    box-shadow: 0 0 15px rgba(135, 10, 48, 0.6);
    content: "✔";
    color: white;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    line-height: 18px;
    transform: scale(1.1);
}

/* Alerts y notificaciones modernas */
.alert {
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInAlert 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert.success {
    background: rgba(46, 213, 115, 0.2);
    border-color: rgba(46, 213, 115, 0.3);
    color: #2ed573;
}

.alert.error {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.alert.warning {
    background: rgba(255, 165, 2, 0.2);
    border-color: rgba(255, 165, 2, 0.3);
    color: #ffa502;
}

@keyframes slideInAlert {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



/* Dashboard moderno */
.dashboard-box {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    text-align: center;
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

/* Grid para botones del dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.dashboard-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.dashboard-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.dashboard-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Botones modernos del dashboard con vino tinto */
.btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #5d0e41, #7209b7, #302b63);
    border: none;
    color: white;
    border-radius: 16px;
    margin: 8px 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(93, 14, 65, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(135deg, #870a30, #9c27b0, #3f51b5);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(135, 10, 48, 0.5);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(93, 14, 65, 0.4);
}

/* Botón de logout con estilo diferente */
.btn-logout {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #ff7675, #fd79a8) !important;
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

/* Cajas modernas unificadas */
.server-box, .menu-box, .admin-box {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    text-align: center;
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

/* Contenedores de botones modernos */
.menu-buttons, .admin-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 2rem;
}

/* Botón de eliminación moderno */
.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff7675, #fd79a8) !important;
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    html, body {
        font-size: 0.9rem;
    }
    
    form, .dashboard-box, .server-box, .menu-box, .admin-box {
        max-width: 90%;
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    button, .btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    form, .dashboard-box, .server-box, .menu-box, .admin-box {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    input {
        padding: 12px 16px;
    }
}
