.auth-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.auth-code-row input {
    min-width: 0;
    letter-spacing: .08em;
}

.auth-code-button {
    min-width: 94px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    padding: 0 12px;
    background: #f7f9fc;
    color: var(--accent-primary, #409eff);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.auth-code-button:hover:not(:disabled) {
    border-color: rgba(64, 158, 255, .38);
    background: #eef6ff;
}

.auth-code-button:disabled {
    cursor: wait;
    opacity: .72;
}

.auth-code-status.is-error {
    color: #a33a31;
}

.auth-code-status.is-success {
    color: #2e7d32;
}

html[data-theme="dark"] .auth-code-button {
    border-color: #2a2f3b;
    background: #1d2230;
    color: #8bb6ff;
}

html[data-theme="dark"] .auth-code-button:hover:not(:disabled) {
    border-color: rgba(139, 182, 255, .38);
    background: #242b3b;
}

@media (max-width: 360px) {
    .auth-code-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-code-button {
        min-height: 40px;
    }
}
