/* Estilos generales */
body {
    background-color: #ffffff;
    font-family: "Poppins", sans-serif;
    color: #333;
    margin: 0;
    padding: 0;

    /* 🟢 Centrar todo en la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Contenedor principal */
.container {
    max-width: 400px;
    width: 100%;
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Título */
h2 {
    color: #2c7b50; /* Verde suave */
    font-weight: 600;
}

/* Estilo del logo */
.logo {
    width: 150px;
    display: block;
    margin: 10px auto;
}

/* Estilo del input y botón */
.input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #2c7b50;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    text-align: center;
    box-sizing: border-box;
}

/* Botón debajo del input */
button {
    background-color: #2c7b50;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    width: 100%;
}

button:hover {
    background-color: #24643f;
}

/* Mensajes de respuesta */
.alert {
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsividad */
@media (max-width: 600px) {
    .container {
        max-width: 90%;
    }

    .input-group {
        width: 100%;
    }

    input {
        width: 100%;
    }

    button {
        width: 100%;
    }
}
