/* SSO page-specific styles */

body {
	overflow: hidden;
}

.sso-bg {
	position: fixed;
	inset: 0;
	background: url('/img/ocean-blur.webp') center/cover no-repeat fixed;
	z-index: -2;
}

.sso-container {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	padding: 3rem 1rem 2rem;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.sso-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}
.sso-logo svg {
	width: 36px;
	height: 36px;
	color: white;
}
.sso-brand {
	font-size: 2rem;
	font-weight: 900;
	color: white;
	text-transform: uppercase;
}

.sso-header {
	width: 100%;
	background: var(--g-blue);
	border-radius: var(--r) var(--r) 0 0;
	padding: 1.5rem 1rem 1rem;
	text-align: center;
}
.sso-header-green {
	background: var(--g-green);
}
.sso-header-red {
	background: var(--g-error);
}
.sso-header-yellow {
	background: var(--g-yellow);
}

.sso-subtitle {
	margin-bottom: 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
}

.sso-panel {
	width: 100%;
	box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.5);
	border-radius: var(--r);
}

.sso-card {
	width: 100%;
	border: 1px solid var(--border);
	border-top: none;
	border-radius: 0 0 var(--r) var(--r);
}

.sso-error {
	background: rgba(229, 45, 39, 0.12);
	border: 1px solid var(--error-400);
	border-radius: var(--r);
	padding: 0.5rem 0.75rem;
	font-size: 0.8rem;
	color: var(--error-300);
	margin-bottom: 1rem;
}

.sso-success {
	background: rgba(2, 180, 71, 0.12);
	border: 1px solid var(--green-400);
	border-radius: var(--r);
	padding: 0.5rem 0.75rem;
	font-size: 0.8rem;
	color: var(--green-300);
	margin-bottom: 1rem;
}

.sso-pw-wrap {
	position: relative;
}
.sso-pw-toggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--t4);
	cursor: pointer;
	padding: 0.25rem;
	font-size: 1rem;
}
.sso-pw-toggle:hover {
	color: var(--t2);
}

.sso-submit {
	width: 100%;
	justify-content: center;
	margin-top: 0.5rem;
	padding: 0.6rem;
	font-size: 0.85rem;
}

.sso-divider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1.25rem 0;
}
.sso-divider::before,
.sso-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border);
}
.sso-divider span {
	font-size: 0.7rem;
	color: var(--t4);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 600;
}

.sso-alt {
	text-align: center;
	font-size: 0.8rem;
	color: var(--t3);
}
.sso-alt a {
	color: var(--link);
	text-decoration: none;
	font-weight: 600;
}
.sso-alt a:hover {
	text-decoration: underline;
}

.sso-forgot {
	display: block;
	text-align: right;
	font-size: 0.75rem;
	color: var(--link);
	text-decoration: none;
	margin-top: 0.25rem;
}
.sso-forgot:hover {
	text-decoration: underline;
}

/* Password strength bar */
.sso-strength {
	height: 3px;
	border-radius: 2px;
	margin-top: 0.375rem;
	width: 0;
	transition: width 0.2s, background 0.2s;
}

/* Captcha */
.sso-captcha {
	margin-bottom: 0.5rem;
}
.sso-captcha-img {
	border-radius: var(--r);
	border: 1px solid var(--border);
}

/* TOTP enrollment */
.sso-totp-info {
	font-size: 0.85rem;
	color: var(--t2);
	margin-bottom: 1rem;
	line-height: 1.5;
}
.sso-qr {
	text-align: center;
	margin-bottom: 1rem;
}
.sso-uri {
	font-size: 0.65rem;
	color: var(--t3);
	word-break: break-all;
	line-height: 1.4;
}
