/* ==========================
   Fondo general
   ========================== */
body {
    margin: 0;
    padding: 0;
    background: #f7f9fb;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ==========================
   Encabezado
   ========================== */
.header-container {
    width: 100%;
    background: linear-gradient(90deg, #5fb8ac, #4aa39f);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 10px;
}

.header-container img {
    width: 80px;
    margin-bottom: 10px;
}

.header-container h4 {
    font-weight: 500;
    font-size: 20px;
    text-align: center;
}

/* ==========================
   Contenedor principal
   ========================== */
#main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 10px;
}

/* ==========================
   Tarjeta de login
   ========================== */
.card {
    width: 420px;
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: 0px 10px 32px rgba(0, 0, 0, 0.08);
}

.login-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Inputs */
.form-group label {
    font-size: 13px;
    font-weight: 600;
}

.form-control {
    height: 38px;
    border-radius: 8px !important;
    font-size: 14px;
}

/* ==========================
   Botón INGRESAR centrado SIEMPRE
   ========================== */

.btn-center,
.text-center button[type="submit"],
.btn-login-wrapper {
    width: 100%;
    display: flex !important;
    justify-content: center !important;
}

.btn-login {
    width: 160px;
    padding: 8px 0;
    background: #007bff;
    border-radius: 30px;
    color: white;
    border: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.25s;
}

.btn-login:hover {
    background: #0069d9;
}

/* ==========================
   Botón recuperar contraseña
   ========================== */
.recover-btn {
    width: 100%;
    margin-top: 15px;
}

.recover-btn button {
    width: 100%;
    background: #6c757d;
    border: none;
    padding: 10px;
    color: white;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
}

.recover-btn button:hover {
    background: #5a6268;
}

/* ==========================
   Footer
   ========================== */
footer {
    text-align: center;
    padding: 25px;
    color: #4e4e4e;
    font-size: 13px;
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 480px) {

    .card {
        width: 90%;
        padding: 25px 20px;
    }

    .btn-login {
        width: 70%;
    }

    .recover-btn button {
        font-size: 13px;
    }
}
