/**
 * IHUB Custom - Email OTP sign-in
 * Copyright (C) 2026 The Inspiration Hub. IHUB-CUSTOM.
 *
 * Deliberately minimal: colours and radii come from custom properties so each
 * template style (Hub warm, Magikal indigo/gold) can set them without an override.
 */
.ihubotp {
	--ihubotp-gap: .75rem;
	--ihubotp-radius: 6px;
	--ihubotp-border: currentColor;
	--ihubotp-accent: #4a3f9f;
	--ihubotp-error: #b00020;
	display: grid;
	gap: var(--ihubotp-gap);
}

.ihubotp p { margin: 0; }

.ihubotp-label {
	display: block;
	margin-bottom: .25rem;
}

.ihubotp-input {
	width: 100%;
	padding: .6rem .7rem;
	border: 1px solid var(--ihubotp-border);
	border-radius: var(--ihubotp-radius);
	background: transparent;
	color: inherit;
	font: inherit;
}

.ihubotp-input:focus-visible {
	outline: 2px solid var(--ihubotp-accent);
	outline-offset: 2px;
}

.ihubotp-code {
	font-size: 1.5rem;
	letter-spacing: .4em;
	text-align: center;
}

.ihubotp-btn {
	padding: .65rem 1rem;
	border: 1px solid var(--ihubotp-accent);
	border-radius: var(--ihubotp-radius);
	background: var(--ihubotp-accent);
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.ihubotp-btn[disabled] { opacity: .6; cursor: default; }

.ihubotp-btn-quiet { background: transparent; color: inherit; }

.ihubotp-link {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.ihubotp-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: .9em;
}

.ihubotp-check {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.ihubotp-message,
.ihubotp-alert {
	padding: .6rem .7rem;
	border: 1px solid var(--ihubotp-border);
	border-radius: var(--ihubotp-radius);
}

.ihubotp-message.is-error,
.ihubotp-alert {
	border-color: var(--ihubotp-error);
	color: var(--ihubotp-error);
}

.ihubotp [data-step] { display: grid; gap: var(--ihubotp-gap); }
.ihubotp [hidden] { display: none !important; }
