/* ============================= */
/* Estilos generales para ambas páginas */
/* ============================= */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Epilogue', sans-serif; /* Fuente general Epilogue */
    min-height: 100vh;
    height: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ============================= */
/* Estilos para reglog.php */
/* ============================= */
body.reglog {
    background: linear-gradient(to bottom, #001d37, #001d37);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

body.reglog .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 5vw;
}

body.reglog .form-box {
    background-color: #0099ff;
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin: 0 auto; 
    box-sizing: border-box;
    
    width: 100%;
    max-width: 50vw;
    min-width: 300px;

    height: 100%;
    max-height: 50vh;
    min-height: 500px;

    box-shadow: 0 0 15px rgba(0,0,0,0.3);

    overflow: hidden;

}

body.reglog .logo {
    text-align: center;
    margin-bottom: 20px;
}

body.reglog .logo img {
    max-width: 120px;
}

body.reglog h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #001d37;
}

body.reglog input[type="text"],
body.reglog input[type="email"],
body.reglog input[type="password"] {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
}

body.reglog input::placeholder {
    color: #aaa;
}

body.reglog button {
    width: 100%;
    padding: 12px;
    background-color: #d6ff03;
    color: #001d37;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 15px;
}

body.reglog button:hover {
    background-color: #00bcd4;
}

body.reglog .switch {
    color: #001d37;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

body.reglog .switch a {
    color: #d6ff03;
    text-decoration: none;
    font-weight: 600;
}

body.reglog .error-message {
    background-color: rgba(229, 57, 53, 0.2);
    color: #e53935;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
    border: 1px solid #e53935;
}


body.reglog .form-group.checkboxes {
    display: flex;
    flex-direction: column; /* pone los elementos uno debajo del otro */
    gap: 10px; /* espacio entre los checkboxes */
    margin-top: 15px;
}

body.reglog .form-group.checkboxes label {
    font-size: 14px;
    color: #001d37; /* mismo color del texto de tu formulario */
    cursor: pointer;
}

body.reglog .form-group.checkboxes input[type="checkbox"] {
    margin-right: 8px; /* separa el checkbox del texto */
    transform: scale(1.2); /* opcional, hace el checkbox un poco más grande */
}

body.reglog .form-group.checkboxes a {
    color: #d6ff03; /* mismo color que tus links en el formulario */
    text-decoration: underline;
}

body.reglog .form-group.checkboxes a:hover {
    color: #00bcd4; /* color al pasar el mouse */
}

body.reglog button:disabled {
    background-color: #999; /* gris apagado */
    color: #555; /* texto gris */
    cursor: not-allowed; /* cursor de prohibido */
    opacity: 0.6; /* opcional: más sutil */
}

/* ============================= */
/* Estilos para panel.php */
/* ============================= */
body.panel {
    font-family: 'Epilogue', sans-serif; /* Cambiado a Epilogue */
    background: linear-gradient(to bottom, #001d37, #001d37);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: #fff;
}

body.panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #0099ff;
    border-bottom: 1px solid #000;
}

body.panel .logo {
    display: flex;
    align-items: center;
}

body.panel .logo img {
    height: 40px;
    margin-right: 10px;
}

body.panel .logo h1 {
    font-size: 20px;
    color: #001d37;
    margin: 0;
}

body.panel .logout-btn {
    background-color: #e53935;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

body.panel .logout-btn:hover {
    background-color: #c62828;
}

body.panel .panel-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    backdrop-filter: blur(8px);
    background-color: #00000080;
    border-radius: 12px;
}

body.panel .user-box {
    background-color: #0099ff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

body.panel .user-box h2 {
    color: #001d37;
    margin-bottom: 20px;
}

body.panel .user-box p {
    margin: 10px 0;
}

body.panel .grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

body.panel .grid-item {
    background-color: #0099ff;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

body.panel .grid-item:hover {
    transform: translateY(-5px);
}

body.panel .grid-item h4 {
    color: #001d37;
    margin-bottom: 10px;
}

body.panel .delete-btn {
    background-color: #e53935;
    color: #fff;
    padding: 0 0;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

body.panel .delete-btn:hover {
    background-color: #c62828;
}

/* ============================= */
/* Estilos para solicitar_eliminacion.php */
/* ============================= */
body.solicitar {
    font-family: 'Epilogue', sans-serif; /* Fuente consistente */
    margin: 0;
    background: linear-gradient(to bottom, #001d37, #001d37); /* Fondo consistente con panel y reglog */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: #fff;
}

body.solicitar header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #0099ff; /* Consistente con panel */
    border-bottom: 1px solid #000;
}

body.solicitar .logo {
    display: flex;
    align-items: center;
}

body.solicitar .logo img {
    height: 40px;
    margin-right: 10px;
}

body.solicitar .logo h1 {
    font-size: 20px;
    color: #001d37;
    margin: 0;
}

body.solicitar .container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    backdrop-filter: blur(8px);
    background-color: #00000080; /* Fondo semitransparente consistente con panel */
    border-radius: 12px;
}

body.solicitar .container h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

body.solicitar .instructions,
body.solicitar .data-info {
    background-color: #0099ff; /* Ajustado al estilo panel */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

body.solicitar .instructions h3,
body.solicitar .data-info h3 {
    color: #001d37; /* Color destacado consistente con reglog */
    margin-top: 0;
}

body.solicitar .instructions ol {
    padding-left: 20px;
}

body.solicitar .form-group {
    margin-bottom: 15px;
}

body.solicitar .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

body.solicitar .form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #1f1f1f; /* Consistente con input de reglog */
    color: #fff;
    box-sizing: border-box;
}

body.solicitar .submit-btn {
    background-color: #e53935; /* Consistente con botones de reglog */
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    font-size: 16px;
}

body.solicitar .submit-btn:hover {
    background-color: #c62828;
}

body.solicitar .back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #d6ff03;
    text-decoration: none;
}

body.solicitar .error-message {
    color: #e53935;
    background-color: rgba(229, 57, 53, 0.2);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

/* ============================= */
/* Media queries para responsive */
/* ============================= */
@media (max-width: 500px) {
    body.reglog .form-box {
        padding: 30px 20px;
    }

    body.panel .logo h1 {
        font-size: 16px;
    }

    body.solicitar .container {
        padding: 20px;
    }

    body.solicitar .logo h1 {
        font-size: 16px;
    }
}