.qr-login-target {
    text-align: center;
}

.qr-login-visual {
    width: 280px;
    height: 280px;
    margin: 0 auto 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 8px;
}

.qr-login-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-login-loader {
    width: 42px;
    height: 42px;
    border: 4px solid #e2e8f0;
    border-top-color: #4f7df3;
    border-radius: 50%;
    animation: qr-login-spin 0.8s linear infinite;
}

@keyframes qr-login-spin {
    to { transform: rotate(360deg); }
}

.qr-login-copy h3 {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.qr-login-copy p {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.qr-login-expiry strong {
    color: #4f46e5;
    font-family: 'JetBrains Mono', monospace;
}

.qr-login-instructions {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 0.5rem 0.65rem;
    text-align: left;
    margin-top: 1rem;
}

.qr-login-instructions p {
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0;
}

.qr-login-step {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.72rem;
    font-weight: 700;
}

.qr-login-security-note {
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.45;
    margin: 1rem 0 0;
}

@media (max-width: 480px) {
    .qr-login-visual {
        width: 240px;
        height: 240px;
    }

    .right-panel .login-tabs .tab-link {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        gap: 0.3rem;
        font-size: 0.75rem !important;
    }

    .right-panel .login-tabs .tab-link svg {
        width: 16px;
        height: 16px;
    }
}

.qr-scanner-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.qr-scanner-header {
    margin-bottom: 1.5rem;
}

.qr-scanner-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.qr-video-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
}

.qr-video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-video-guide {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(58%, 250px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    pointer-events: none;
    box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.35);
}

.qr-scanner-message {
    min-height: 24px;
    color: #475569;
    text-align: center;
    font-size: 0.88rem;
    margin: 1rem 0;
}

.qr-scanner-message.error {
    color: #dc2626;
}

.qr-scanner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.qr-scanner-help {
    color: #94a3b8;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 1rem 0 0;
}

.qr-confirmation,
.qr-scanner-result {
    text-align: center;
    padding: 1rem 0;
}

.qr-confirmation-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.qr-confirmation-icon.success {
    color: #059669;
    background: #ecfdf5;
}

.qr-confirmation h2,
.qr-scanner-result h2 {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 750;
    margin-bottom: 0.45rem;
}

.qr-confirmation > p,
.qr-scanner-result > p {
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.qr-preview-list {
    margin: 1.25rem auto;
    max-width: 540px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.qr-preview-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.qr-preview-list > div:last-child {
    border-bottom: none;
}

.qr-preview-list dt {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
}

.qr-preview-list dd {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 650;
    margin: 0;
    text-align: right;
}

@media (max-width: 576px) {
    .qr-scanner-card {
        padding: 1rem;
    }

    .qr-scanner-actions .btn,
    .qr-scanner-actions label.btn {
        width: 100%;
    }

    .qr-preview-list > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .qr-preview-list dd {
        text-align: left;
    }
}
