/**
 * MYO Custom Login - Google OAuth Styles
 * 
 * Styling for Google "Continue with Google" button
 * Following Google's brand guidelines
 * 
 * @version 1.0.0
 */

/* Google Login Container */
.myo-google-login-container {
	margin: 20px 0 0 0;
	text-align: center;
}

/* Social Divider */
.myo-social-divider {
	text-align: center;
	margin: 20px 0;
	position: relative;
}

.myo-social-divider span {
	background: transparent;
	padding: 0 15px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 16px;
	position: relative;
	z-index: 1;
	text-transform: lowercase;
	font-weight: 500;
}

.myo-social-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(174, 145, 66, 0.3);
	z-index: 0;
}

/* Google Login Button */
.myo-google-login-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 14px 20px;
	background: #0c2340;
	color: #ffffff;
	border: 1px solid #ae9142;
	border-radius: 8px;
	font-size: 17px;
	font-weight: 500;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	text-decoration: none;
}

.myo-google-login-button:hover {
	background: #15355a;
	border-color: #c4a852;
	box-shadow: 0 4px 12px rgba(174, 145, 66, 0.4);
	transform: translateY(-1px);
}

.myo-google-login-button:active {
	background: #0a1d34;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	transform: translateY(0);
}

.myo-google-login-button:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(174, 145, 66, 0.3);
}

/* Google Icon */
.myo-google-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	display: block;
}

/* Loading State */
.myo-google-login-button.myo-loading {
	cursor: not-allowed;
	pointer-events: none;
}

.myo-google-login-button.myo-loading::after {
	content: '';
	position: absolute;
	right: 15px;
	width: 16px;
	height: 16px;
	border: 2px solid #dadce0;
	border-top-color: #4285f4;
	border-radius: 50%;
	animation: myo-google-spin 0.8s linear infinite;
}

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

/* Disabled State */
.myo-google-login-button:disabled {
	cursor: not-allowed;
	background: #0c2340;
	border-color: #ae9142;
}

/* Google Error Message */
.myo-google-error {
	background: rgba(255, 107, 107, 0.15);
	border-left: 4px solid #ff6b6b;
	color: #ffffff;
	padding: 12px 16px;
	margin: 15px 0;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.6;
	animation: myo-google-fade-in 0.3s ease;
	text-align: left;
}

@keyframes myo-google-fade-in {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive Design */
@media screen and (max-width: 768px) {
	.myo-google-login-button {
		font-size: 14px;
		padding: 11px 16px;
	}
	
	.myo-google-icon {
		width: 16px;
		height: 16px;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.myo-google-login-button {
		border-width: 2px;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	.myo-google-login-button,
	.myo-google-error,
	.myo-google-login-button.myo-loading::after {
		animation: none;
		transition: none;
	}
	
	.myo-google-login-button:hover {
		transform: none;
	}
}
