/* css/style.css */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box; /* Incluye padding y border en el ancho total */
}

h1 {
    color: #0056b3;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.button-group {
    display: flex;
    justify-content: space-between;
    gap: 15px; /* Espacio entre los botones */
    margin-top: 25px;
}

.btn {
    flex: 1; /* Para que los botones ocupen el mismo espacio */
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: white;
}

.btn.primary {
    background-color: #28a745; /* Verde para entrada */
}

.btn.primary:hover {
    background-color: #218838;
}

.btn.secondary {
    background-color: #dc3545; /* Rojo para salida */
}

.btn.secondary:hover {
    background-color: #c82333;
}

.message {
    margin-top: 25px;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    display: none; /* Oculto por defecto, se muestra con JS */
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* --- Responsive Design --- */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 20px;
    }

    .button-group {
        flex-direction: column; /* Apila los botones en pantallas pequeñas */
    }

    .btn {
        width: 100%; /* Ocupa todo el ancho disponible */
    }
}