/* ============================================
   PREMIUM OAUTH SIGN-IN STYLES 🔥
   Ultra-advanced, professional feel
   ============================================ */

.oauth-container {
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.oauth-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible; /* FIX: Show button text */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* FIX: Ensure button text is visible */
.oauth-btn span {
    display: inline-block;
    flex-shrink: 0;
}

.oauth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.oauth-btn:hover::before {
    opacity: 1;
}

.oauth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.oauth-btn:active {
    transform: translateY(0);
}

.oauth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Google Sign-In */
.oauth-btn.google {
    background: #ffffff;
    color: #3c4043;
    border-color: #dadce0;
}

.oauth-btn.google:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

.oauth-btn.google .oauth-icon {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oauth-btn.google .oauth-icon svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}

/* Apple Sign-In */
.oauth-btn.apple {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.oauth-btn.apple:hover {
    background: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.oauth-btn.apple .oauth-icon {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oauth-btn.apple .oauth-icon svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    fill: currentColor;
}

/* Microsoft Sign-In */
.oauth-btn.microsoft {
    background: #ffffff;
    color: #5e5e5e;
    border-color: #8c8c8c;
}

.oauth-btn.microsoft:hover {
    background: #f3f3f3;
    border-color: #00a4ef;
    box-shadow: 0 8px 24px rgba(0, 164, 239, 0.2);
}

.oauth-btn.microsoft .oauth-icon {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oauth-btn.microsoft .oauth-icon svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}

/* GitHub Sign-In */
.oauth-btn.github {
    background: #24292e;
    color: #ffffff;
    border-color: #24292e;
}

.oauth-btn.github:hover {
    background: #2f363d;
    border-color: #444d56;
    box-shadow: 0 8px 24px rgba(36, 41, 46, 0.4);
}

.oauth-btn.github .oauth-icon {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oauth-btn.github .oauth-icon svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    fill: currentColor;
}

/* Loading state */
.oauth-btn.loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.oauth-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: oauth-spin 0.6s linear infinite;
    left: 50%;
    top: 50%;
    margin-left: -8px;
    margin-top: -8px;
}

.oauth-btn.loading .oauth-icon,
.oauth-btn.loading span {
    opacity: 0;
}

@keyframes oauth-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Dark mode adjustments */
body.dark-mode .oauth-btn.google {
    background: #ffffff;
    color: #3c4043;
}

body.dark-mode .oauth-btn.microsoft {
    background: #ffffff;
    color: #5e5e5e;
}

/* Responsive */
@media (max-width: 768px) {
    .oauth-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    .oauth-btn .oauth-icon {
        width: 14px;
        height: 14px;
    }
    
    .oauth-btn .oauth-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* Premium divider with text */
.auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    margin: 1rem 0;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.auth-divider span {
    padding: 0 0.75rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Success animation */
@keyframes oauth-success {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.oauth-btn.success {
    animation: oauth-success 0.3s ease;
    border-color: var(--success);
}

/* Error state */
.oauth-btn.error {
    border-color: var(--error);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Accessibility */
.oauth-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Premium touch feedback */
@media (hover: none) {
    .oauth-btn:active {
        transform: scale(0.98);
    }
}
