/**
 * Google SSO Styles
 * Google-branded login button and One Tap popup for OAuth SSO Client
 *
 * @package WP Single Sign On Client
 */

/* ============================================
   Login Buttons Container (side by side layout)
   ============================================ */
.wposso-login-buttons {
	clear: both;
	margin: 16px auto 0;
}

.wposso-login-buttons__row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.wposso-login-buttons__row > a {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 0%;
	flex: 1 1 0%;
	min-width: 0;
}

/* Legacy single button wrapper (backward compat) */
.wposso-google-login {
	clear: both;
	margin: 16px auto 0;
}

.wposso-google-login__button-container {
	margin-top: 10px;
}

/* ============================================
   Google Login Button
   ============================================ */
.wposso-google-login__button {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 100%;
	padding: 10px 15px;
	background-color: #fff;
	border: 1px solid #dadce0;
	border-radius: 4px;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	color: #3c4043;
	cursor: pointer;
	font-family: 'Google Sans', Roboto, Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 25px;
	text-align: center;
	text-decoration: none;
	-webkit-transition: background-color 0.2s, -webkit-box-shadow 0.2s;
	transition: background-color 0.2s, box-shadow 0.2s;
}

.wposso-google-login__button:hover {
	background-color: #f7f8f8;
	-webkit-box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px rgba(60, 64, 67, 0.15);
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px rgba(60, 64, 67, 0.15);
	color: #3c4043;
	text-decoration: none;
}

.wposso-google-login__button:active {
	background-color: #e8eaed;
}

.wposso-google-login__button svg {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-right: 10px;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	vertical-align: middle;
}

.wposso-google-login__button span {
	vertical-align: middle;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ============================================
   BizCity ID Login Button (matching Google style)
   ============================================ */
.wposso-bizcity-login__button {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 100%;
	padding: 10px 15px;
	background-color: #1a5276;
	border: 1px solid #154360;
	border-radius: 4px;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	color: #fff;
	cursor: pointer;
	font-family: 'Google Sans', Roboto, Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 25px;
	text-align: center;
	text-decoration: none;
	-webkit-transition: background-color 0.2s, -webkit-box-shadow 0.2s;
	transition: background-color 0.2s, box-shadow 0.2s;
}

.wposso-bizcity-login__button:hover {
	background-color: #1f6694;
	-webkit-box-shadow: 0 1px 2px rgba(26, 82, 118, 0.4), 0 1px 3px rgba(26, 82, 118, 0.2);
	box-shadow: 0 1px 2px rgba(26, 82, 118, 0.4), 0 1px 3px rgba(26, 82, 118, 0.2);
	color: #fff;
	text-decoration: none;
}

.wposso-bizcity-login__button:active {
	background-color: #154360;
}

.wposso-bizcity-login__icon {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-right: 10px;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	background-color: #fff;
	color: #1a5276;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.wposso-bizcity-login__button span:last-child {
	vertical-align: middle;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ============================================
   Separator
   ============================================ */
.wposso-google-login__separator {
	position: relative;
	text-align: center;
	margin: 16px 0 0;
}

.wposso-google-login__separator::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background-color: #dadce0;
}

.wposso-google-login__separator span {
	position: relative;
	z-index: 1;
	background-color: #fff;
	padding: 0 12px;
	color: #5f6368;
	font-size: 12px;
	text-transform: uppercase;
}

/* ============================================
   One Tap Popup (Google-style notification)
   ============================================ */
.wposso-onetap {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 999999;
	font-family: 'Google Sans', Roboto, Arial, sans-serif;
	-webkit-animation: wposso-onetap-slide-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	animation: wposso-onetap-slide-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Closing animation */
.wposso-onetap--closing {
	-webkit-animation: wposso-onetap-slide-out 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
	animation: wposso-onetap-slide-out 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@-webkit-keyframes wposso-onetap-slide-in {
	from {
		opacity: 0;
		-webkit-transform: translateX(100%);
		transform: translateX(100%);
	}
	to {
		opacity: 1;
		-webkit-transform: translateX(0);
		transform: translateX(0);
	}
}

@keyframes wposso-onetap-slide-in {
	from {
		opacity: 0;
		-webkit-transform: translateX(100%);
		transform: translateX(100%);
	}
	to {
		opacity: 1;
		-webkit-transform: translateX(0);
		transform: translateX(0);
	}
}

@-webkit-keyframes wposso-onetap-slide-out {
	from {
		opacity: 1;
		-webkit-transform: translateX(0);
		transform: translateX(0);
	}
	to {
		opacity: 0;
		-webkit-transform: translateX(100%);
		transform: translateX(100%);
	}
}

@keyframes wposso-onetap-slide-out {
	from {
		opacity: 1;
		-webkit-transform: translateX(0);
		transform: translateX(0);
	}
	to {
		opacity: 0;
		-webkit-transform: translateX(100%);
		transform: translateX(100%);
	}
}

.wposso-onetap__card {
	width: 368px;
	max-width: calc(100vw - 32px);
	background: #fff;
	border-radius: 8px;
	-webkit-box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15), 0 4px 12px rgba(60, 64, 67, 0.25);
	box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15), 0 4px 12px rgba(60, 64, 67, 0.25);
	padding: 24px;
	position: relative;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.wposso-onetap__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 18px;
	color: #5f6368;
	cursor: pointer;
	width: 32px;
	height: 32px;
	padding: 0;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	line-height: 1;
	border-radius: 50%;
	-webkit-transition: background-color 0.15s;
	transition: background-color 0.15s;
}

.wposso-onetap__close:hover {
	background-color: rgba(0, 0, 0, 0.08);
}

.wposso-onetap__header {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	margin-bottom: 8px;
	padding-right: 28px;
}

.wposso-onetap__header svg {
	width: 20px;
	height: 20px;
	margin-right: 10px;
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

.wposso-onetap__title {
	font-size: 16px;
	font-weight: 500;
	color: #202124;
	letter-spacing: -0.01em;
}

.wposso-onetap__desc {
	font-size: 13px;
	color: #5f6368;
	margin: 0 0 20px;
	line-height: 1.5;
}

.wposso-onetap__cta {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 100%;
	padding: 10px 24px;
	background-color: #1a73e8;
	border: none;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font-family: 'Google Sans', Roboto, Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	-webkit-transition: background-color 0.2s, -webkit-box-shadow 0.2s;
	transition: background-color 0.2s, box-shadow 0.2s;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	letter-spacing: 0.01em;
}

.wposso-onetap__cta:hover {
	background-color: #1765cc;
	-webkit-box-shadow: 0 1px 3px rgba(26, 115, 232, 0.4);
	box-shadow: 0 1px 3px rgba(26, 115, 232, 0.4);
	color: #fff;
	text-decoration: none;
}

.wposso-onetap__cta:active {
	background-color: #185abc;
}

.wposso-onetap__cta svg {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 420px) {
	.wposso-onetap {
		top: 8px;
		right: 8px;
		left: 8px;
	}

	.wposso-onetap__card {
		width: auto;
	}

	/* Stack buttons vertically on narrow screens */
	.wposso-login-buttons__row {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
	}
}

/* wp-login.php page: stack buttons vertically (login form is narrow ~320px) */
.login .wposso-login-buttons__row {
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}

/* Admin bar adjustment */
.admin-bar .wposso-onetap {
	top: 48px;
}

@media screen and (max-width: 782px) {
	.admin-bar .wposso-onetap {
		top: 62px;
	}
}
