/**
 * Auth0 Social Login Buttons
 * CVC User Account Plugin
 */

/* CVC Brand Colors */
:root {
	--cvc-blue: #13182f;
	--cvc-green: #10c2d3;
	--cvc-gray: #ecf0f4;
	--cvc-white: #ffffff;
	--cvc-darkgray: #7f93ae;
}

/* Container */
.cvc-social-login {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 340px;
	margin: 0 auto;
	padding: 20px 0;
}

/* Base button styles */
.cvc-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 24px;
	border-radius: 8px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cvc-social-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cvc-social-btn:active {
	transform: translateY(0);
}

/* Icon */
.cvc-social-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* Google Button */
.cvc-google-btn {
	background: #ffffff;
	color: #3c4043;
	border-color: #dadce0;
}

.cvc-google-btn:hover {
	background: #f8f9fa;
	border-color: #dadce0;
	color: #3c4043;
}

/* Facebook Button */
.cvc-facebook-btn {
	background: #1877F2;
	color: #ffffff;
}

.cvc-facebook-btn:hover {
	background: #166fe5;
	color: #ffffff;
}

.cvc-facebook-btn .cvc-social-icon path {
	fill: #ffffff;
}

/* Apple Button */
.cvc-apple-btn {
	background: #000000;
	color: #ffffff;
}

.cvc-apple-btn:hover {
	background: #1a1a1a;
	color: #ffffff;
}

.cvc-apple-btn .cvc-social-icon path {
	fill: #ffffff;
}

/* Divider */
.cvc-social-divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 16px 0;
	color: #6b7280;
	font-size: 14px;
}

.cvc-social-divider::before,
.cvc-social-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #e5e7eb;
}

.cvc-social-divider span {
	padding: 0 16px;
	text-transform: lowercase;
}

/* Focus states for accessibility */
.cvc-social-btn:focus {
	outline: 2px solid var(--cvc-green);
	outline-offset: 2px;
}

.cvc-google-btn:focus {
	outline-color: #4285F4;
}

.cvc-facebook-btn:focus {
	outline-color: #1877F2;
}

.cvc-apple-btn:focus {
	outline-color: var(--cvc-blue);
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.cvc-social-login {
		max-width: 100%;
		padding: 16px;
	}

	.cvc-social-btn {
		padding: 12px 20px;
		font-size: 14px;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.cvc-google-btn {
		background: #ffffff;
		color: #3c4043;
	}
}

/* Loading state */
.cvc-social-btn.loading {
	pointer-events: none;
	opacity: 0.7;
}

.cvc-social-btn.loading::after {
	content: '';
	width: 16px;
	height: 16px;
	border: 2px solid transparent;
	border-top-color: currentColor;
	border-radius: 50%;
	animation: cvc-spin 0.8s linear infinite;
	margin-left: 8px;
}

@keyframes cvc-spin {
	to {
		transform: rotate(360deg);
	}
}

