.login-page,
.register-page,
.password-reset-page {
    position: relative;
}

.pwa-install-fab {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 74px;
    height: 74px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 18px 35px rgba(0, 86, 179, 0.28);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 1050;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pwa-install-fab:hover {
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 22px 40px rgba(0, 86, 179, 0.34);
}

.pwa-install-fab i {
    font-size: 1.35rem;
}

.pwa-install-fab span {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.pwa-install-toast {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: min(320px, calc(100vw - 2rem));
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe4f0;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
    z-index: 1050;
    display: none;
}

.pwa-install-toast strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #0f4c81;
}

.pwa-install-toast p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .pwa-install-fab {
        right: 1rem;
        bottom: 1rem;
        top: auto;
        transform: none;
        width: 68px;
        height: 68px;
    }

    .pwa-install-fab:hover {
        transform: scale(1.04);
    }

    .pwa-install-toast {
        right: 1rem;
        bottom: 5.8rem;
    }
}