/* Social Auth Buttons
 * Provider-specific button styling for social login.
 * Base .auth-divider and .auth-social styles are in pc-kompas-user-api/assets/css/auth.css
 */

/* ========================================
   Social Button Base
   ======================================== */

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md, 8px);
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
    border: 1px solid;
}

.social-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.social-btn__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.social-btn__text {
    white-space: nowrap;
}

/* ========================================
   Google Button
   ======================================== */

.social-btn--google {
    background: var(--bg-primary, #fff);
    border-color: var(--border, #dadce0);
    color: var(--text-primary, #3c4043);
}

.social-btn--google:hover:not(:disabled) {
    background: var(--bg-hover, #f8f9fa);
    border-color: var(--border-light, #c4c7cc);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.social-btn--google:active:not(:disabled) {
    background: var(--bg-tertiary, #f1f3f4);
}

/* ========================================
   Facebook Button
   ======================================== */

.social-btn--facebook {
    background: #1877F2;
    border-color: #1877F2;
    color: #ffffff;
}

.social-btn--facebook:hover:not(:disabled) {
    background: #166fe5;
    border-color: #166fe5;
    box-shadow: 0 1px 3px rgba(24, 119, 242, 0.3);
}

.social-btn--facebook:active:not(:disabled) {
    background: #1469d4;
    border-color: #1469d4;
}

.social-btn--facebook .social-btn__icon {
    fill: #ffffff;
}

/* ========================================
   Error Message
   ======================================== */

.pksa-error {
    margin-bottom: 12px;
}

/* ========================================
   Terms Text
   ======================================== */

.social-terms {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted, #70757a);
    text-align: center;
    line-height: 1.5;
}

.social-terms a {
    color: var(--accent, #4285f4);
    text-decoration: underline;
}

.social-terms a:hover {
    color: var(--accent-hover, #1a73e8);
}

/* ========================================
   Linked Accounts (Profile Section)
   ======================================== */

.linked-accounts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.linked-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary, #f8f9fa);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: var(--radius-md, 8px);
}

.linked-account__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.linked-account__name {
    font-weight: 500;
    color: var(--text-primary);
}

.linked-account__status {
    font-size: 0.8125rem;
    color: var(--text-muted, #70757a);
}

.linked-account__status--active {
    color: var(--success, #46b450);
}
