/*
 * PSP Google Auth — Login Button Styles
 * Matches the PSP design system tokens defined in the theme spec (Section 7).
 * Uses CSS custom properties so the theme can override individual values.
 */

/* Design token fallbacks — the theme's main.css defines these globally */
:root {
	--psp-auth-black:       var(--black,        #0a0a0a);
	--psp-auth-black-2:     var(--black-2,       #141414);
	--psp-auth-white:       var(--white,         #ffffff);
	--psp-auth-silver:      var(--silver,        #c8c8c8);
	--psp-auth-silver-dark: var(--silver-dark,   #7d7d7d);
	--psp-auth-error:       var(--error,         #e05555);
	--psp-auth-sans:        var(--sans,          "Inter", -apple-system, sans-serif);
	--psp-auth-serif:       var(--serif,         "Playfair Display", Georgia, serif);
}

/* ─── Wrapper ──────────────────────────────────────────────────────────────── */

.psp-google-auth-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

/* ─── Google Sign-In Button ─────────────────────────────────────────────────
   Follows Google's branding guidelines:
   https://developers.google.com/identity/branding-guidelines
*/

.psp-google-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 0 24px 0 0;
	background: var(--psp-auth-white);
	border: 1px solid rgba(184, 184, 184, 0.3);
	color: var(--psp-auth-black);
	font-family: var(--psp-auth-sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
	min-width: 240px;
	max-width: 320px;
}

.psp-google-btn:hover,
.psp-google-btn:focus-visible {
	background: #f8f8f8;
	border-color: rgba(184, 184, 184, 0.6);
	transform: translateY(-1px);
	text-decoration: none;
	color: var(--psp-auth-black);
}

.psp-google-btn:focus-visible {
	outline: 2px solid var(--psp-auth-silver);
	outline-offset: 3px;
}

.psp-google-btn:active {
	transform: translateY(0);
	background: #efefef;
}

/* Icon container — white square matching Google's spec */
.psp-google-btn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	background: var(--psp-auth-white);
	border-right: 1px solid rgba(184, 184, 184, 0.2);
	flex-shrink: 0;
}

.psp-google-btn__label {
	flex: 1;
	text-align: center;
}

/* ─── Sub-note below the button ─────────────────────────────────────────────  */

.psp-google-auth-note {
	font-family: var(--psp-auth-sans);
	font-size: 12px;
	color: var(--psp-auth-silver-dark);
	letter-spacing: 0.05em;
	text-align: center;
	margin: 0;
}

/* ─── Already-authenticated state ───────────────────────────────────────────  */

.psp-google-auth-wrap--authenticated {
	align-items: flex-start;
}

.psp-already-in {
	font-family: var(--psp-auth-sans);
	font-size: 14px;
	color: var(--psp-auth-silver);
	margin: 0;
}

.psp-logout-link {
	font-family: var(--psp-auth-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--psp-auth-silver-dark);
	text-decoration: none;
	border-bottom: 1px solid rgba(184, 184, 184, 0.3);
	padding-bottom: 1px;
	transition: color 0.2s, border-color 0.2s;
}

.psp-logout-link:hover {
	color: var(--psp-auth-white);
	border-color: var(--psp-auth-white);
}

/* ─── Profile completion prompt ─────────────────────────────────────────────  */

.psp-profile-prompt {
	border: 1px solid rgba(200, 140, 40, 0.4);
	background: rgba(200, 140, 40, 0.06);
	padding: 20px 24px;
	margin: 24px 0;
}

.psp-profile-prompt__message {
	font-family: var(--psp-auth-sans);
	font-size: 14px;
	color: var(--psp-auth-silver);
	margin: 0 0 16px;
}

.psp-profile-prompt__cta {
	display: inline-block;
	padding: 10px 24px;
	background: var(--psp-auth-white);
	color: var(--psp-auth-black);
	font-family: var(--psp-auth-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid var(--psp-auth-white);
	transition: background 0.2s, color 0.2s;
}

.psp-profile-prompt__cta:hover {
	background: var(--psp-auth-black);
	color: var(--psp-auth-white);
}

/* ─── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
	.psp-google-btn {
		min-width: 0;
		width: 100%;
		max-width: 100%;
	}
}
