/* =====================================================================
   Nexus Social Auth — Social Login Buttons
   ===================================================================== */

/* Container */
.nx-social-login-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* ── Base Button ─────────────────────────────────────────────────── */
.nx-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 20px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    position: relative;
    overflow: hidden;
    outline: none;
    -webkit-user-select: none;
    user-select: none;
}

.nx-social-btn:focus-visible {
    outline: 3px solid #1877F2;
    outline-offset: 2px;
}

.nx-social-btn .nx-btn-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.nx-social-btn .nx-btn-icon svg {
    width: 20px;
    height: 20px;
}

.nx-social-btn .nx-btn-text {
    flex: 1;
    text-align: center;
}

/* ── Google Button ───────────────────────────────────────────────── */
.nx-btn-google {
    background: #ffffff;
    color: #3c4043;
    border: 1.5px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nx-btn-google:hover:not([disabled]) {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-color: #c5c8cc;
    transform: translateY(-1px);
}

.nx-btn-google:active:not([disabled]) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* ── Facebook Button ─────────────────────────────────────────────── */
.nx-btn-facebook {
    background: #1877F2;
    color: #ffffff;
    border: 1.5px solid transparent;
    box-shadow: 0 1px 3px rgba(24,119,242,0.3);
}

.nx-btn-facebook:hover:not([disabled]) {
    background: #166fe5;
    box-shadow: 0 3px 10px rgba(24,119,242,0.4);
    transform: translateY(-1px);
}

.nx-btn-facebook:active:not([disabled]) {
    background: #1565d8;
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(24,119,242,0.3);
}

/* ── Loading State ───────────────────────────────────────────────── */
.nx-social-btn.nx-loading {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
}

.nx-social-btn.nx-loading .nx-btn-icon {
    animation: nx-spin 0.7s linear infinite;
}

.nx-social-btn.nx-loading .nx-btn-icon svg {
    display: none;
}

.nx-social-btn.nx-loading .nx-btn-icon::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    animation: nx-spin 0.7s linear infinite;
}

.nx-btn-google.nx-loading .nx-btn-icon::after {
    border-top-color: #4285f4;
    border-right-color: #4285f4;
}

.nx-btn-facebook.nx-loading .nx-btn-icon::after {
    border-top-color: rgba(255,255,255,0.9);
    border-right-color: rgba(255,255,255,0.9);
}

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

/* ── "or" Divider ────────────────────────────────────────────────── */
.nx-social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.nx-social-divider::before,
.nx-social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.nx-social-divider span {
    font-size: 13px;
    color: #757575;
    font-weight: 500;
    white-space: nowrap;
    padding: 0 2px;
}

/* ── Error Message ───────────────────────────────────────────────── */
.nx-social-error {
    background: #fff3f3;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    text-align: center;
}

/* ── Mobile Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .nx-social-login-btns {
        max-width: 100%;
    }
    .nx-social-divider {
        max-width: 100%;
    }
    .nx-social-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
}
