/* =============================================================================
   integration/auth.css
   Numbered instruction steps and OAuth / API-key authentication buttons.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Instruction steps
   ----------------------------------------------------------------------------- */

.auth-instructions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.instr-row,
.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.instr-num,
.instruction-number {
    min-width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.instr-text,
.instruction-content p {
    font-size: var(--font-size-sm);
    color: var(--text-medium);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

.instr-text a,
.instruction-content a {
    color: var(--primary);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}

.instr-text a:hover,
.instruction-content a:hover {
    text-decoration: underline;
}

/* step-description compat (JobNimbus, ShopMonkey, etc.) */
.step-description {
    font-size: var(--font-size-sm);
    color: var(--text-medium);
    line-height: var(--line-height-normal);
    margin: 0;
}

.step-description a {
    color: var(--primary);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}

/* -----------------------------------------------------------------------------
   OAuth login buttons
   ----------------------------------------------------------------------------- */

/* generic brand button */
.ghlm-login-button,
.btn-oauth {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
    cursor: pointer;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
}

.ghlm-login-button:hover,
.btn-oauth:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-primary);
}

/* branded partner buttons (Business Central, QuickBooks) */
.ghlm-quickbookslogin-button {
    background: url('/img/C2QB_green_btn_med_default.svg') no-repeat center center;
    background-size: cover;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    height: 36px;
    width: 223px;
}

    .ghlm-quickbookslogin-button:hover {
        background: url('/img/C2QB_green_btn_med_hover.svg') no-repeat center center;
        background-size: cover;
    }

/* -----------------------------------------------------------------------------
   Authorization status panel (shows after OAuth callback)
   ----------------------------------------------------------------------------- */

.auth-status-container {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.auth-status-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--success);
    margin: 0 0 var(--space-2) 0;
}

.auth-status-description {
    font-size: var(--font-size-xs);
    color: var(--text-medium);
    margin: 0 0 var(--space-1) 0;
    line-height: var(--line-height-normal);
}
