/* Checkbox "Recordarme" en el login (solo visible en PWA) */

.remember-row {
    margin: -6px 0 14px;
}
.remember-row[hidden] { display: none; }

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #455a64;
    user-select: none;
}
.remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #1e88e5;
    cursor: pointer;
    flex-shrink: 0;
}
.remember-label span { line-height: 1.3; }

/* Botón "Instalar app" en el login + modal de instrucciones iOS */

.btn-install-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px solid #1e88e5;
    border-radius: 10px;
    background: rgba(30, 136, 229, 0.08);
    color: #1565c0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .05s;
    font-family: inherit;
}
.btn-install-app:hover { background: rgba(30, 136, 229, 0.16); }
.btn-install-app:active { transform: scale(.98); }
.btn-install-app i { font-size: 16px; }
.btn-install-app[hidden] { display: none; }

/* Modal iOS */
.ios-install-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
}
.ios-install-backdrop.open { display: flex; }

.ios-install-sheet {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 14px 14px 0 0;
    padding: 22px 20px 18px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp .22s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.ios-install-sheet h3 {
    margin: 0 0 14px;
    font-size: 17px;
    color: #212b36;
    text-align: center;
}
.ios-install-sheet ol {
    margin: 0 0 18px;
    padding-left: 22px;
    color: #455a64;
    font-size: 14px;
    line-height: 1.7;
}
.ios-install-sheet ol li b { color: #212b36; }
.ios-install-sheet ol li i {
    color: #1e88e5;
    margin: 0 2px;
}
.ios-install-sheet .btn-login {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: #1e88e5;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
.ios-install-sheet .btn-login:hover { background: #1565c0; }

@media (min-width: 600px) {
    .ios-install-backdrop {
        align-items: center;
    }
    .ios-install-sheet {
        border-radius: 14px;
    }
}
