/* login-config-totp specific styles */
.totp-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* The TOTP flow contains a 402px instruction column and a 256px QR code. */
.centered-layout__content .form-container:has(.totp-container) {
    width: 690px;
}

.steps-row {
    display: grid;
    grid-template-columns: minmax(0, 402px) 256px;
    gap: var(--spacing-xxl);
    align-items: flex-start;
}

.steps-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

.step {
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 3px;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding-top: 3px;
    width: 362px;
}

.step-title {
    font-weight: 700;
    font-size: var(--font-size-h5);
    line-height: var(--line-height-h5);
    color: var(--primary-primary-0);
}

.step-description {
    font-weight: 400;
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--secondary-secondary-0);
}

.step-or {
    font-weight: 400;
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--secondary-secondary-0);
}

.code-text {
    font-weight: 700;
    font-size: var(--font-size-h6);
    line-height: var(--line-height-h6);
    color: var(--primary-primary-0);
    letter-spacing: 0.5px;
}

.qr-code {
    width: 256px;
    height: 256px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    box-sizing: border-box;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.divider {
    border: none;
    border-top: 1px solid var(--gray-gray-4);
    margin: 32px 0;
}

.step-three-content {
    padding-left: 40px;
}

/* Keep the verification controls aligned with the instruction text column. */
.pr-290 {
    padding-right: 290px;
}

@media (max-width: 767px) {
    .centered-layout__content .form-container:has(.totp-container) {
        width: 100%;
    }

    .steps-row {
        grid-template-columns: 1fr;
    }

    .qr-code {
        justify-self: center;
    }

    .pr-290 {
        padding-right: 0;
    }
}
