/* Organela — superclean registration
   Primary: rgb(61, 140, 53) / Secondary: #FA6619 */

:root {
	--op-green: rgb(61, 140, 53);
	--op-green-deep: rgb(42, 108, 38);
	--op-green-soft: rgba(61, 140, 53, 0.12);
	--op-orange: #FA6619;
	--op-orange-deep: #e05510;
	--op-orange-soft: rgba(250, 102, 25, 0.14);
	--op-ink: #1a2418;
	--op-muted: #5c6b58;
	--op-line: rgba(61, 140, 53, 0.18);
	--op-surface: rgba(255, 255, 255, 0.72);
}

.op-reg {
	position: relative;
	isolation: isolate;
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: clamp(24px, 4vw, 48px) 20px;
	font-family: 'Raleway', sans-serif;
	color: var(--op-ink);
	background:
		radial-gradient(1200px 700px at 12% -10%, rgba(61, 140, 53, 0.22), transparent 60%),
		radial-gradient(900px 600px at 100% 10%, rgba(250, 102, 25, 0.12), transparent 55%),
		linear-gradient(165deg, #f4faf2 0%, #e8f3e6 42%, #fff8f3 100%);
	overflow: hidden;
	box-sizing: border-box;
}

.op-reg *,
.op-reg *::before,
.op-reg *::after {
	box-sizing: border-box;
}

.op-reg__atmosphere {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.op-reg__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(40px);
	opacity: 0.55;
	animation: op-float 12s ease-in-out infinite;
}

.op-reg__orb--a {
	width: min(42vw, 380px);
	height: min(42vw, 380px);
	background: rgba(61, 140, 53, 0.28);
	top: -8%;
	left: -6%;
}

.op-reg__orb--b {
	width: min(36vw, 320px);
	height: min(36vw, 320px);
	background: rgba(250, 102, 25, 0.22);
	right: -4%;
	bottom: 8%;
	animation-delay: -4s;
	animation-duration: 15s;
}

.op-reg__grain {
	position: absolute;
	inset: 0;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.op-reg__stack {
	position: relative;
	z-index: 1;
	width: min(100%, 980px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	animation: op-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.op-reg__shell {
	position: relative;
	z-index: 1;
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
	align-items: stretch;
	overflow: hidden;
	padding: 0;
	border-radius: 28px;
	background: var(--op-surface);
	border: 1px solid rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.8) inset,
		0 24px 60px rgba(42, 108, 38, 0.08);
}

.op-reg__panel {
	padding: clamp(32px, 4vw, 44px) clamp(24px, 3.5vw, 40px);
	min-width: 0;
}

.op-reg__visual {
	position: relative;
	min-height: 560px;
	overflow: hidden;
	background: #1f3a1c;
}

@media (max-width: 980px) and (min-width: 769px) {
	.op-reg__stack {
		width: min(100%, 860px);
	}

	.op-reg__shell {
		grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.85fr);
	}

	.op-reg__visual {
		min-height: 520px;
	}
}

.op-reg__visual-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 45%;
	display: block;
}

.op-reg__visual-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 56px 22px 22px;
	background: linear-gradient(180deg, transparent 0%, rgba(18, 36, 16, 0.78) 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.op-reg__visual-caption span {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.op-reg__visual-caption small {
	font-size: 0.82rem;
	opacity: 0.9;
	font-weight: 500;
	line-height: 1.35;
}

.op-reg__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	margin: 0;
}

.op-reg__logo {
	height: 52px;
	width: auto;
	display: block;
}

.op-reg__title {
	font-family: 'Playfair Display', Georgia, serif !important;
	font-size: clamp(1.85rem, 4.5vw, 2.25rem) !important;
	font-weight: 700 !important;
	font-style: normal !important;
	text-align: center;
	margin: 0 0 8px !important;
	color: #000000 !important;
	letter-spacing: -0.02em;
	line-height: 1.15;
	animation: op-rise 0.75s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.op-reg__lede {
	text-align: center;
	margin: 0 0 28px;
	color: var(--op-muted);
	font-size: 0.95rem;
	line-height: 1.55;
	max-width: 34em;
	margin-left: auto;
	margin-right: auto;
	animation: op-rise 0.75s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.op-reg__form {
	display: grid;
	gap: 10px;
	animation: op-rise 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.op-reg__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.op-reg__field {
	display: block;
	text-align: left;
}

.op-reg__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.op-reg__field input {
	width: 100%;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid var(--op-line);
	background: rgba(255, 255, 255, 0.9);
	font: 500 0.95rem/1.3 'Raleway', sans-serif;
	color: var(--op-ink);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.op-reg__field input::placeholder {
	color: #7a8a76;
	opacity: 1;
	font-weight: 500;
}

.op-reg__field input:focus {
	border-color: var(--op-green);
	box-shadow: 0 0 0 4px var(--op-green-soft);
	transform: translateY(-1px);
}

.op-reg__phone {
	display: flex;
	align-items: stretch;
	width: 100%;
	border-radius: 14px;
	border: 1px solid var(--op-line);
	background: rgba(255, 255, 255, 0.9);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.op-reg__phone:focus-within {
	border-color: var(--op-green);
	box-shadow: 0 0 0 4px var(--op-green-soft);
	transform: translateY(-1px);
}

.op-reg__phone-prefix {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px 0 14px;
	background: rgba(61, 140, 53, 0.06);
	border-right: 1px solid var(--op-line);
	flex-shrink: 0;
	user-select: none;
}

.op-reg__flag {
	width: 22px;
	height: 16px;
	object-fit: cover;
	border-radius: 2px;
	display: block;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.op-reg__dial {
	font: 600 0.92rem/1 'Raleway', sans-serif;
	color: var(--op-ink);
	letter-spacing: 0.01em;
}

.op-reg__phone input {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	background: transparent !important;
	padding-left: 14px;
}

.op-reg__phone input:focus {
	border: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}

.op-reg__password {
	position: relative;
	display: block;
}

.op-reg__password input {
	padding-right: 46px;
}

.op-reg__eye {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #6d7c69;
	cursor: pointer;
	border-radius: 8px;
	padding: 0;
}

.op-reg__eye:hover {
	color: var(--op-green);
	background: rgba(61, 140, 53, 0.08);
}

.op-reg__eye svg {
	width: 22px;
	height: 22px;
	display: block;
}

.op-reg__eye-icon[hidden] {
	display: none !important;
}

.op-reg__strength {
	margin-top: 6px;
	height: 2px;
	width: 100%;
	border-radius: 999px;
	background: rgba(61, 140, 53, 0.12);
	overflow: hidden;
}

.op-reg__strength-bar {
	display: block;
	height: 2px;
	width: 0%;
	border-radius: 999px;
	background: #c62828;
	transition: width 0.25s ease, background-color 0.25s ease;
}

.op-reg__strength[data-level="1"] .op-reg__strength-bar {
	width: 25%;
	background: #c62828;
}

.op-reg__strength[data-level="2"] .op-reg__strength-bar {
	width: 50%;
	background: var(--op-orange);
}

.op-reg__strength[data-level="3"] .op-reg__strength-bar {
	width: 75%;
	background: #c9a227;
}

.op-reg__strength[data-level="4"] .op-reg__strength-bar {
	width: 100%;
	background: var(--op-green);
}

.op-reg__strength-hint {
	margin: 5px 0 0;
	min-height: 1em;
	font-size: 0.72rem;
	line-height: 1.3;
	color: #8a9687;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.op-reg__strength-hint:empty {
	display: none;
}

.op-reg__terms {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 2px;
	font-size: 0.84rem;
	color: var(--op-muted);
	line-height: 1.45;
	cursor: pointer;
}

.op-reg__terms input {
	margin-top: 3px;
	accent-color: var(--op-green);
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.op-reg__terms a {
	color: var(--op-green);
	font-weight: 600;
	text-decoration: none;
}

.op-reg__terms a:hover {
	color: var(--op-green-deep);
	text-decoration: underline;
}

.op-reg__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 6px;
	padding: 15px 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--op-green) 0%, var(--op-green) 62%, var(--op-orange) 160%);
	background-color: var(--op-green);
	color: #fff;
	font: 700 0.95rem/1 'Raleway', sans-serif;
	letter-spacing: 0.02em;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(61, 140, 53, 0.28);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.op-reg__submit:hover {
	background: var(--op-orange);
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(250, 102, 25, 0.32);
	color: #fff;
}

.op-reg__submit:active {
	transform: translateY(0);
}

.op-reg__submit:disabled {
	opacity: 0.7;
	cursor: wait;
	transform: none;
}

.op-reg__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 2px 0 4px;
	font-size: 0.86rem;
}

.op-reg__remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--op-muted);
	cursor: pointer;
	font-weight: 500;
	margin: 0;
}

.op-reg__remember input {
	width: 16px;
	height: 16px;
	accent-color: var(--op-green);
	margin: 0;
}

.op-reg__forgot {
	color: var(--op-green);
	font-weight: 600;
	text-decoration: none;
}

.op-reg__forgot:hover {
	color: var(--op-green-deep);
	text-decoration: underline;
}

.op-reg--login .op-reg__visual {
	min-height: 480px;
}

.op-reg__footer {
	margin: 4px 0 0;
	text-align: center;
	font-size: 0.9rem;
	color: var(--op-muted);
}

.op-reg__footer a {
	color: var(--op-orange);
	font-weight: 700;
	text-decoration: none;
}

.op-reg__footer a:hover {
	color: var(--op-orange-deep);
	text-decoration: underline;
}

.op-reg .organela-message {
	border-radius: 12px;
	padding: 12px 14px;
	margin: 0 0 14px;
	font-size: 0.88rem;
	text-align: left;
}

.op-reg .organela-message-error {
	background: #fdecea;
	color: #8a1f17;
	border: 1px solid #f5c6c2;
}

.op-reg .organela-message-success {
	background: #eaf6e8;
	color: var(--op-green-deep);
	border: 1px solid #cfe8cb;
}

.op-reg .organela-message[hidden] {
	display: none !important;
}

@keyframes op-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes op-float {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(12px, 18px, 0) scale(1.05); }
}

@media (max-width: 768px) {
	.op-reg {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: safe center;
		min-height: 100vh;
		min-height: 100dvh;
		padding: 0;
		background:
			radial-gradient(1200px 700px at 12% -10%, rgba(61, 140, 53, 0.22), transparent 60%),
			radial-gradient(900px 600px at 100% 10%, rgba(250, 102, 25, 0.12), transparent 55%),
			linear-gradient(165deg, #f4faf2 0%, #e8f3e6 42%, #fff8f3 100%);
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		-webkit-tap-highlight-color: transparent;
	}

	.op-reg__atmosphere {
		display: block !important;
	}

	.op-reg__stack {
		width: 100%;
		max-width: 440px;
		margin: 0 auto;
		min-height: 0;
		flex: 0 0 auto;
		gap: 0;
		padding:
			calc(16px + env(safe-area-inset-top, 0px))
			20px
			calc(20px + env(safe-area-inset-bottom, 0px));
		box-sizing: border-box;
		justify-content: safe center;
		align-items: stretch;
		animation: none;
	}

	/* Brand / header */
	.op-reg__brand {
		display: flex;
		justify-content: center;
		align-items: center;
		min-height: 48px;
		padding: 8px 0 20px;
		margin: 0;
	}

	.op-reg__logo {
		height: 40px;
		width: auto;
	}

	.op-reg__shell {
		width: 100%;
		flex: 0 0 auto;
		display: block;
		padding: 0;
		border-radius: 0;
		background: transparent;
		border: 0;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		box-shadow: none;
		overflow: visible;
		grid-template-columns: none;
	}

	.op-reg__panel {
		padding: 0;
	}

	.op-reg__visual {
		display: none !important;
	}

	/* Typography hierarchy */
	.op-reg__title {
		font-size: 28px !important;
		line-height: 1.2 !important;
		margin: 0 0 8px !important;
		animation: none;
		text-wrap: balance;
	}

	.op-reg__lede {
		margin: 0 0 24px;
		padding: 0 4px;
		font-size: 14px;
		line-height: 1.45;
		color: #6b7768;
		animation: none;
		text-wrap: pretty;
	}

	.op-reg__form {
		gap: 12px;
		animation: none;
		width: 100%;
	}

	.op-reg__row {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	/* Inputs: 16px font prevents iOS zoom; 48px min touch height */
	.op-reg__field input {
		min-height: 48px;
		padding: 12px 14px;
		border-radius: 12px;
		border: 1px solid #dce4da;
		background: rgba(255, 255, 255, 0.92);
		font-size: 16px !important;
		line-height: 1.25;
		font-weight: 500;
		transform: none !important;
		box-shadow: none !important;
		appearance: none;
		-webkit-appearance: none;
	}

	.op-reg__field input::placeholder {
		font-size: 16px;
		color: #8b9788;
		font-weight: 500;
	}

	.op-reg__field input:focus {
		border-color: var(--op-green) !important;
		background: #ffffff;
		box-shadow: 0 0 0 3px var(--op-green-soft) !important;
		transform: none !important;
	}

	.op-reg__phone {
		min-height: 48px;
		border-radius: 12px;
		border: 1px solid #dce4da;
		background: rgba(255, 255, 255, 0.92);
		transform: none !important;
		box-shadow: none !important;
	}

	.op-reg__phone:focus-within {
		border-color: var(--op-green);
		background: #ffffff;
		box-shadow: 0 0 0 3px var(--op-green-soft) !important;
		transform: none !important;
	}

	.op-reg__phone-prefix {
		gap: 7px;
		padding: 0 10px 0 12px;
		background: transparent;
	}

	.op-reg__flag {
		width: 20px;
		height: 14px;
		border-radius: 2px;
	}

	.op-reg__dial {
		font-size: 15px;
		font-weight: 600;
	}

	.op-reg__phone input {
		min-height: 48px;
		padding: 12px 14px 12px 10px !important;
		font-size: 16px !important;
		background: transparent !important;
	}

	.op-reg__password input {
		padding-right: 48px;
	}

	.op-reg__eye {
		right: 4px;
		width: 44px;
		height: 44px;
		border-radius: 10px;
		color: #6a7866;
	}

	.op-reg__eye:active {
		background: rgba(61, 140, 53, 0.1);
		color: var(--op-green);
	}

	.op-reg__eye svg {
		width: 22px;
		height: 22px;
	}

	.op-reg__field--password {
		margin-bottom: 0;
	}

	.op-reg__strength {
		margin-top: 8px;
		height: 2px;
	}

	.op-reg__strength-bar {
		height: 2px;
	}

	.op-reg__strength-hint {
		margin-top: 6px;
		font-size: 12px;
		line-height: 1.35;
		color: #8a9687;
		min-height: 0;
	}

	/* Terms: larger hit area */
	.op-reg__terms {
		align-items: flex-start;
		gap: 12px;
		margin: 4px 0 0;
		padding: 4px 0;
		font-size: 13px;
		line-height: 1.4;
		min-height: 44px;
	}

	.op-reg__terms input {
		width: 20px;
		height: 20px;
		margin-top: 1px;
		flex-shrink: 0;
	}

	.op-reg__submit {
		margin-top: 8px;
		margin-bottom: 0;
		min-height: 52px;
		padding: 14px 18px;
		border-radius: 14px;
		font-size: 16px;
		font-weight: 700;
		letter-spacing: 0.01em;
		box-shadow: 0 8px 20px rgba(61, 140, 53, 0.22);
		transform: none !important;
	}

	.op-reg__submit:hover {
		transform: none !important;
	}

	.op-reg__submit:active {
		background: var(--op-orange);
		box-shadow: 0 4px 12px rgba(250, 102, 25, 0.25);
		transform: scale(0.98) !important;
	}

	.op-reg__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin: 4px 0 2px;
		font-size: 14px;
	}

	.op-reg__remember {
		min-height: 44px;
		padding: 4px 0;
	}

	.op-reg__remember input {
		width: 20px;
		height: 20px;
	}

	.op-reg__forgot {
		padding: 4px 0;
		min-height: 32px;
	}

	.op-reg__footer {
		margin-top: 14px;
		padding-top: 0;
		padding-bottom: 4px;
		font-size: 14px;
		line-height: 1.4;
	}

	.op-reg__footer a {
		display: inline-block;
		padding: 4px 2px;
		min-height: 32px;
	}

	.op-reg .organela-message {
		border-radius: 12px;
		padding: 12px 14px;
		margin: 0 0 12px;
		font-size: 14px;
		line-height: 1.4;
	}
}

/* Very small phones */
@media (max-width: 380px) {
	.op-reg__stack {
		padding-left: 16px;
		padding-right: 16px;
	}

	.op-reg__row {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.op-reg__title {
		font-size: 26px !important;
	}

	.op-reg__phone-prefix {
		padding-left: 10px;
		padding-right: 8px;
	}

	.op-reg__dial {
		font-size: 14px;
	}
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	.op-reg__stack,
	.op-reg__title,
	.op-reg__lede,
	.op-reg__form,
	.op-reg__orb,
	.op-reg__strength-bar,
	.op-reg__field input,
	.op-reg__submit {
		animation: none !important;
		transition: none !important;
	}
}

/* Hide theme chrome when this page is shown fullscreen */
body.organela-reg-clean-page #wpadminbar { display: none !important; }
body.organela-reg-clean-page {
	margin: 0 !important;
	padding: 0 !important;
	background: #fff;
}
body.organela-reg-clean-page .site-header,
body.organela-reg-clean-page header,
body.organela-reg-clean-page footer,
body.organela-reg-clean-page .elementor-location-header,
body.organela-reg-clean-page .elementor-location-footer,
body.organela-reg-clean-page .page-header,
body.organela-reg-clean-page .entry-title {
	display: none !important;
}

@media (max-width: 768px) {
	html,
	body.organela-reg-clean-page {
		background: #f4faf2 !important;
		overscroll-behavior-y: none;
		height: 100%;
	}

	body.organela-reg-clean-page #organela-reg-clean-root {
		background: transparent !important;
		min-height: 100vh;
		min-height: 100dvh;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	body.organela-reg-clean-page #organela-reg-clean-root > .op-reg {
		flex: 1 0 auto;
		width: 100%;
	}
}
