/* ==== CONFIGURACIÓN GLOBAL ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #e9edf1;
    background-image: url('xd.jpg'); /* Imagen de fondo global */
    background-size:cover;
    background-position: center;
    background-repeat:no-repeat;
    padding: 30px;
}

/* ==== TITULOS ==== */
h1, h2, h3 {
    color: #3b4d61;
    text-align: center;
    margin-bottom: 20px;
}

/* ==== CONTENEDORES ==== */
.container {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 35px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
    transition: transform 0.2s;
}

.container:hover {
    transform: translateY(-4px);
}

/* ==== FORMULARIOS ==== */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 450px;
}

label {
    font-size: 14px;
    color: #555;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="date"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="date"]:focus {
    border-color: #5a8dee;
}

/* ==== BOTONES ==== */
input[type="submit"],
input[type="reset"],
a.boton {
    display: inline-block;
    background-color: #5a8dee;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
}

input[type="submit"]:hover,
a.boton:hover {
    background-color: #477dd1;
    transform: scale(1.05);
}

input[type="reset"] {
    background-color: #aaa;
}

input[type="reset"]:hover {
    background-color: #8c8c8c;
}

/* ==== BOTÓN DE SALIDA ==== */
.logout, .btn-regresar {
    background-color: #d9534f !important;
}

.logout:hover, .btn-regresar:hover {
    background-color: #c9302c !important;
}

/* ==== ENLACES GENERALES ==== */
a {
    color: #5a8dee;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
