/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #191970;
    color: #f5f5ee; /*color del texto*/
    padding: 15px;
    font-size: 1.2em;
    text-align: center;
}

/* FOOTER */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #0d0349;
    color: #fff;
    padding: 10px;
    font-size: 1.2em;
    text-align: center;
}

/* BODY */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: radial-gradient(circle at 35.55% 24.97%, #da7fff 0, #9165ff 25%, #4148e1 50%, #002ca6 75%, #001572 100%);
    padding: 80px 20px 60px;
}

/* CONTENEDOR */
.container {
    width: 100%;
    max-width: 400px;
}

/* CAJA LOGIN */
.login-box {
    background: #4B0082;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(236, 234, 234, 0.1);
    text-align: center;
}

/* TITULOS */
.login-box h1,
.login-box h3 {
    color: #f5f3f3;
    margin-bottom: 10px;
}

/* INFO */
.info {
    color: #f7f4f4;
    font-size: 14px;
    margin-bottom: 15px;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
}

/* LABEL */
label {
    font-size: 1rem;
    color: #f7f4f4;
    text-align: left;
    margin-bottom: 5px;
}

/* INPUT CONTENEDOR */
.input-container {
    position: relative;
    margin-bottom: 15px;
}

/* INPUTS */
input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

/* 👁 FIX REAL DEL OJITO */
.input-container input[type="password"] {
    padding-right: 45px; /* espacio suficiente */
}

.input-container .toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    z-index: 10;
}

/* asegurar que el svg se vea */
.input-container .toggle svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* BOTÓN */
button {
    padding: 10px;
    font-size: 1rem;
    color: #ffffff;
    background-color: #800000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

/* HOVER */
button:hover {
    background-color: #b42f07;
}

/* MENSAJE */
#mensaje {
    color: white;
    font-size: 14px;
    margin-top: 10px;
}

/* TABLA */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table, th, td {
    border: 1px solid #ddd;
    padding: 8px;
}

th {
    background-color: #b42f07;
    color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header, footer {
        font-size: 1em;
        padding: 12px;
    }
}

@media (max-width: 480px) {

    body {
        padding: 70px 10px 50px;
    }

    .login-box {
        padding: 20px;
    }

    input {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }

    header, footer {
        font-size: 0.9em;
    }
}
