/**
 * Onboarding Wizard page styles — `ob-` BEM prefix.
 * Uses --rep-* design tokens from tokens.css.
 * Full-screen layout, no .repario-admin-wrap.
 *
 * Design: onboarding_wizard_step_1 (Stitch v3, 2026-03-01).
 */

/* ─────────────────────────────────────────────
   Page shell
───────────────────────────────────────────── */
.ob-page {
	min-height: 100vh;
	background: var(--rep-bg-primary);
	color: var(--rep-text-primary);
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
	display: flex;
	flex-direction: column;
	position: relative;
}

/* Decorative blobs */
.ob-bg {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.ob-bg__blob {
	position: absolute;
	width: 40%;
	height: 40%;
	border-radius: 50%;
	background: var(--rep-accent);
	opacity: 0.05;
	filter: blur(120px);
}

.ob-bg__blob--tl {
	top: -10%;
	left: -10%;
}

.ob-bg__blob--br {
	bottom: -10%;
	right: -10%;
}

/* ─────────────────────────────────────────────
   Header
───────────────────────────────────────────── */
.ob-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(15,15,35,0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--rep-border-subtle);
	padding: 0.875rem 1.5rem;
}

.ob-header__inner {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ob-header__brand {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	text-decoration: none;
}

.ob-header__icon-wrap {
	width: 2rem;
	height: 2rem;
	border-radius: 8px;
	background: rgba(99,102,241,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rep-accent);
}

.ob-header__icon-wrap .material-symbols-outlined {
	font-size: 1.25rem;
}

.ob-header__logo {
	font-size: 1.1875rem;
	font-weight: 800;
	color: var(--rep-text-primary);
	letter-spacing: -0.02em;
}

.ob-header__signin {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--rep-text-secondary);
	text-decoration: none;
	padding: 0.5rem 0.875rem;
	border-radius: 8px;
	border: 1px solid var(--rep-border-subtle);
	transition: all 0.2s ease;
}

.ob-header__signin:hover {
	color: var(--rep-text-primary);
	border-color: var(--rep-border-default);
	background: var(--rep-bg-secondary);
}

.ob-header__signin .material-symbols-outlined {
	font-size: 1rem;
}

/* ─────────────────────────────────────────────
   Main layout
───────────────────────────────────────────── */
.ob-main {
	flex: 1;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 2.5rem 1.25rem 5rem;
	position: relative;
	z-index: 1;
}

.ob-container {
	width: 100%;
	max-width: 800px;
}

.ob-form {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

/* ─────────────────────────────────────────────
   Step progress indicator
───────────────────────────────────────────── */
.ob-steps {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.ob-steps__track {
	height: 6px;
	background: var(--rep-border-subtle);
	border-radius: 100px;
	overflow: hidden;
}

.ob-steps__fill {
	height: 100%;
	width: 50%;
	background: var(--rep-accent);
	border-radius: 100px;
	box-shadow: 0 0 12px rgba(99,102,241,0.5);
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ob-steps__labels {
	display: flex;
	gap: 2rem;
}

.ob-steps__label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--rep-text-muted);
	transition: color 0.2s ease;
}

.ob-steps__label--active {
	color: var(--rep-accent);
	font-weight: 700;
}

.ob-steps__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	font-size: 0.75rem;
	font-weight: 700;
	background: var(--rep-border-subtle);
	color: var(--rep-text-muted);
	border: 1px solid var(--rep-border-subtle);
	transition: all 0.2s ease;
}

.ob-steps__dot--active {
	background: var(--rep-accent);
	color: var(--rep-text-inverse);
	border-color: var(--rep-accent);
}

/* ─────────────────────────────────────────────
   Step panels
───────────────────────────────────────────── */
.ob-step {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.ob-step--hidden {
	display: none;
}

.ob-step__header {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.ob-step__eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rep-accent);
	margin: 0;
}

.ob-step__title {
	font-size: clamp(1.625rem, 4vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin: 0;
}

.ob-step__desc {
	font-size: 1rem;
	color: var(--rep-text-secondary);
	margin: 0;
	line-height: 1.6;
}

.ob-step__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.5rem;
}

.ob-step__login-hint {
	font-size: 0.875rem;
	color: var(--rep-text-muted);
	text-align: center;
	margin: 0;
}

/* ─────────────────────────────────────────────
   Form card
───────────────────────────────────────────── */
.ob-card {
	background: var(--rep-bg-secondary);
	border: 1px solid var(--rep-border-subtle);
	border-radius: 20px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

/* ─────────────────────────────────────────────
   Fields
───────────────────────────────────────────── */
.ob-fields--2col {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 560px) {
	.ob-fields--2col {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ob-field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.ob-field__label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rep-text-primary);
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.ob-field__req {
	color: var(--rep-accent);
	font-size: 1rem;
	line-height: 1;
}

.ob-field__opt {
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--rep-text-muted);
}

.ob-field__input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	border: 1px solid var(--rep-border-subtle);
	background: rgba(255,255,255,0.04);
	color: var(--rep-text-primary);
	font-size: 0.9375rem;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
}

.ob-field__input:focus {
	border-color: var(--rep-accent);
	box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.ob-field__input::placeholder {
	color: var(--rep-text-muted);
}

.ob-field__input--error {
	border-color: var(--rep-danger);
	box-shadow: 0 0 0 2px rgba(239,68,68,0.15);
}

.ob-field__input--textarea {
	resize: vertical;
	min-height: 80px;
}

/* Password toggle wrapper */
.ob-field__pwd-wrap {
	position: relative;
}

.ob-field__pwd-wrap .ob-field__input {
	padding-right: 3rem;
}

.ob-field__pwd-toggle {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 0.25rem;
	cursor: pointer;
	color: var(--rep-text-muted);
	transition: color 0.2s ease;
	display: flex;
	align-items: center;
}

.ob-field__pwd-toggle:hover {
	color: var(--rep-text-primary);
}

.ob-field__pwd-toggle .material-symbols-outlined {
	font-size: 1.125rem;
}

/* ─────────────────────────────────────────────
   Alert / error
───────────────────────────────────────────── */
.ob-alert {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.875rem 1rem;
	border-radius: 10px;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
}

.ob-alert--error {
	background: rgba(239,68,68,0.1);
	border: 1px solid rgba(239,68,68,0.25);
	color: var(--rep-color-semantic-error-border);
}

.ob-alert--error .material-symbols-outlined {
	font-size: 1.125rem;
	color: var(--rep-danger);
	flex-shrink: 0;
	margin-top: 0.0625rem;
}

.ob-alert--hidden {
	display: none !important;
}

/* ─────────────────────────────────────────────
   Buttons
───────────────────────────────────────────── */
.ob-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8125rem 1.75rem;
	font-size: 0.9375rem;
	font-weight: 700;
	font-family: inherit;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	white-space: nowrap;
}

.ob-btn .material-symbols-outlined {
	font-size: 1.125rem;
	transition: transform 0.2s ease;
}

.ob-btn--primary {
	background: var(--rep-accent);
	color: var(--rep-text-inverse);
	box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}

.ob-btn--primary:hover {
	background: var(--rep-accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 24px rgba(99,102,241,0.35);
}

.ob-btn--primary:hover .material-symbols-outlined:last-child {
	transform: translateX(3px);
}

.ob-btn--primary:active {
	transform: translateY(0);
}

.ob-btn--primary:disabled,
.ob-btn--loading {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

.ob-btn--ghost {
	background: transparent;
	color: var(--rep-text-secondary);
	border: 1px solid var(--rep-border-subtle);
}

.ob-btn--ghost:hover {
	color: var(--rep-text-primary);
	border-color: var(--rep-border-default);
	background: var(--rep-bg-secondary);
}

/* ─────────────────────────────────────────────
   Link
───────────────────────────────────────────── */
.ob-link {
	color: var(--rep-accent);
	text-decoration: none;
	font-weight: 600;
}

.ob-link:hover {
	text-decoration: underline;
}

/* ─────────────────────────────────────────────
   Trust badges (under submit)
───────────────────────────────────────────── */
.ob-trust-badges {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	padding-top: 0.5rem;
}

.ob-trust-badge {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--rep-text-muted);
}

.ob-trust-badge .material-symbols-outlined {
	font-size: 0.9375rem;
	color: var(--rep-success);
}

/* ─────────────────────────────────────────────
   Micro-note (under next button)
───────────────────────────────────────────── */
.ob-step__micro-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	color: var(--rep-text-muted);
	margin: 0;
}

.ob-step__micro-note .material-symbols-outlined {
	font-size: 0.875rem;
	color: var(--rep-text-muted);
}

/* ─────────────────────────────────────────────
   Mobile
───────────────────────────────────────────── */
@media (max-width: 480px) {
	.ob-main {
		padding: 1.5rem 1rem 4rem;
	}

	.ob-card {
		padding: 1.5rem 1.25rem;
	}

	.ob-btn {
		padding: 0.75rem 1.25rem;
		font-size: 0.875rem;
	}

	.ob-step__nav {
		flex-direction: column;
		gap: 0.75rem;
	}

	.ob-step__nav .ob-btn {
		width: 100%;
	}

	.ob-step__nav > span {
		display: none;
	}
}
