/* RESET ESPECÍFICO */
html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    /* Eliminamos overflow: hidden para permitir scroll si el teclado móvil tapa el botón */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e3f2fd;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* TARJETA DE RECUPERACIÓN (Mobile First) */
.recuperar-box {
    width: 100%; /* Ocupa el ancho disponible en móvil */
    max-width: 450px;
    background-color: #ffffff;
    padding: 25px; /* Menos padding en móvil */
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #bbdefb;
    transition: all 0.3s ease;
}

/* CABECERA */
.recuperar-header {
    text-align: center;
    margin-bottom: 20px;
}

.recuperar-logo {
    width: 120px; /* Un poco más pequeña en móvil */
    height: auto;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.recuperar-logo:hover {
    transform: scale(1.05);
}

.recuperar-header h2 {
    color: #1976d2;
    font-size: 1.4rem; /* Adaptado para móvil */
    font-weight: 700;
    margin-bottom: 10px;
}

.recuperar-header p {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* FORMULARIO */
.form-group label {
    color: #1976d2;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 15px !important;
    font-size: 0.95rem !important;
    border: 2px solid #f1f8ff; /* Borde más suave */
    border-radius: 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2196f3;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

/* BOTÓN ACCIÓN */
.btn-recuperar {
    background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.btn-recuperar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.3);
}

/* FOOTER */
.recuperar-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f1f1;
}

.recuperar-footer a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.recuperar-footer a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* ADAPTACIÓN A PANTALLAS GRANDES */
@media (min-width: 768px) {
    .recuperar-box {
        padding: 40px;
    }
    .recuperar-logo {
        width: 140px;
    }
    .recuperar-header h2 {
        font-size: 1.6rem;
    }
}

/* ALERTAS BOOTSTRAP PERSONALIZADAS */
.alert {
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: none;
}