/* ============================================================
   OREM 2026 — Páginas de Acceder / Crear cuenta (premium).
   Layout "split card": panel de marca (burdeos) + formulario (Pearl).
   Usa los tokens inline #orem-brand-tokens con fallback por si RUCC.
   Sin dependencias JS (salvo el toggle de contraseña, vanilla inline).
   ============================================================ */

.orem-auth {
	--auth-radius: 20px;
	box-sizing: border-box;
	width: 100%;
	min-height: 78vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 20px 64px;
	background:
		radial-gradient(1200px 600px at 85% -10%, var(--orem-silk, #F3E3D8) 0%, transparent 60%),
		linear-gradient(180deg, var(--orem-pearl, #FAF8F5) 0%, #fff 100%);
}
.orem-auth *,
.orem-auth *::before,
.orem-auth *::after { box-sizing: border-box; }

/* ---- Tarjeta ---- */
.orem-auth__card {
	width: 100%;
	max-width: 1040px;
	display: grid;
	grid-template-columns: 46% 54%;
	background: #fff;
	border: 1px solid var(--orem-champagne, #E8D8C5);
	border-radius: var(--auth-radius);
	overflow: hidden;
	box-shadow: 0 24px 60px -28px rgba(43, 30, 33, .35), 0 4px 14px -8px rgba(43, 30, 33, .12);
}

/* ---- Panel de marca ---- */
.orem-auth__panel {
	position: relative;
	color: var(--orem-pearl, #FAF8F5);
	background:
		radial-gradient(700px 400px at 20% 0%, rgba(255,255,255,.10) 0%, transparent 55%),
		linear-gradient(155deg, var(--orem-burgundy, #6B1D33) 0%, var(--orem-burgundy-deep, #4C1526) 100%);
	overflow: hidden;
}
.orem-auth__panel::after { /* textura sutil de esquina */
	content: "";
	position: absolute;
	right: -80px;
	bottom: -80px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(243,218,158,.16) 0%, transparent 70%);
	pointer-events: none;
}
.orem-auth__panel-inner {
	position: relative;
	z-index: 1;
	height: 100%;
	padding: 52px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}
.orem-auth__brand {
	font-family: "Prompt", sans-serif;
	font-weight: 400;
	font-size: 26px;
	letter-spacing: .34em;
	text-transform: uppercase;
	color: var(--orem-pearl, #FAF8F5);
	text-decoration: none;
	margin-bottom: 28px;
}
.orem-auth__brand:hover { color: #fff; }
.orem-auth__panel-kicker {
	font-family: "Prompt", sans-serif;
	font-size: 12px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--orem-butter, #F3DA9E);
	margin: 0 0 8px;
}
.orem-auth__panel-title {
	font-family: "Noto Serif Display", Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-size: clamp(30px, 3vw, 40px);
	line-height: 1.12;
	color: var(--orem-pearl, #FAF8F5);
	margin: 0 0 14px;
}
.orem-auth__panel-sub {
	font-family: "Prompt", sans-serif;
	font-weight: 300;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255,255,255,.86);
	margin: 0 0 26px;
	max-width: 34ch;
}
.orem-auth__benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.orem-auth__benefits li {
	position: relative;
	padding-left: 30px;
	font-family: "Prompt", sans-serif;
	font-weight: 300;
	font-size: 14.5px;
	color: rgba(255,255,255,.92);
	line-height: 1.4;
}
.orem-auth__benefits li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(243,218,158,.18);
	/* check mark */
	background-image: linear-gradient(45deg, transparent 42%, var(--orem-butter, #F3DA9E) 42%, var(--orem-butter, #F3DA9E) 58%, transparent 58%);
}
.orem-auth__benefits li::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 6px;
	width: 6px;
	height: 3px;
	border-left: 2px solid var(--orem-burgundy-deep, #4C1526);
	border-bottom: 2px solid var(--orem-burgundy-deep, #4C1526);
	transform: rotate(-45deg);
}

/* ---- Lado del formulario ---- */
.orem-auth__form {
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.orem-auth__form-inner {
	width: 100%;
	max-width: 400px;
	padding: 52px 46px;
}
.orem-auth__brand--mobile {
	display: none;
	color: var(--orem-burgundy, #6B1D33);
	font-size: 22px;
	margin-bottom: 22px;
}
.orem-auth__title {
	font-family: "Prompt", sans-serif;
	font-weight: 500;
	font-size: 26px;
	color: var(--orem-ink, #2B2B2B);
	margin: 0 0 6px;
	letter-spacing: .005em;
}
.orem-auth__lede {
	font-family: "Prompt", sans-serif;
	font-weight: 300;
	font-size: 14.5px;
	color: #7a6f68;
	margin: 0 0 26px;
}

/* ---- Campos ---- */
.orem-auth__field { margin: 0 0 18px; }
.orem-auth__field label {
	display: block;
	font-family: "Prompt", sans-serif;
	font-weight: 400;
	font-size: 13px;
	color: var(--orem-ink, #2B2B2B);
	margin-bottom: 7px;
}
.orem-auth__field .required { color: var(--orem-burgundy, #6B1D33); border: 0; text-decoration: none; }
.orem-auth__input {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	font-family: "Prompt", sans-serif;
	font-size: 15px;
	font-weight: 300;
	color: var(--orem-ink, #2B2B2B);
	background: var(--orem-pearl, #FAF8F5);
	border: 1px solid var(--orem-champagne, #E8D8C5);
	border-radius: 10px;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.orem-auth__input::placeholder { color: #b7ada6; }
.orem-auth__input:focus {
	outline: none;
	background: #fff;
	border-color: var(--orem-burgundy, #6B1D33);
	box-shadow: 0 0 0 3px var(--orem-btn-focus-ring, rgba(107, 29, 51, .18));
}

/* Hint bajo el campo (ej. requisitos de contraseña) */
.orem-auth__hint {
	display: block;
	margin-top: 6px;
	font-family: "Prompt", sans-serif;
	font-size: 12px;
	font-weight: 300;
	color: #a99e97;
}

/* Password con toggle */
.orem-auth__pass-wrap { position: relative; display: block; }
.orem-auth__pass-wrap .orem-auth__input { padding-right: 46px; }
.orem-auth__pass-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: transparent;
	border: 0;
	padding: 0;
	color: #a99e97;
	cursor: pointer;
	border-radius: 8px;
	transition: color .15s ease, background-color .15s ease;
}
.orem-auth__pass-toggle:hover { color: var(--orem-burgundy, #6B1D33); background: var(--orem-pearl, #FAF8F5); }
.orem-auth__pass-toggle:focus-visible { outline: 2px solid var(--orem-burgundy, #6B1D33); outline-offset: 1px; }
.orem-auth__pass-toggle .orem-eye { width: 20px; height: 20px; display: block; }
.orem-auth__pass-toggle .orem-eye--hide { display: none; }
.orem-auth__pass-toggle.is-visible .orem-eye--show { display: none; }
.orem-auth__pass-toggle.is-visible .orem-eye--hide { display: block; }

/* Fila recordar / olvidé */
.orem-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: -2px 0 22px;
	flex-wrap: wrap;
}
.orem-auth__remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Prompt", sans-serif;
	font-size: 13px;
	font-weight: 300;
	color: #6f645d;
	cursor: pointer;
	margin: 0;
}
.orem-auth__remember input { accent-color: var(--orem-burgundy, #6B1D33); width: 16px; height: 16px; }
.orem-auth__link-muted {
	font-family: "Prompt", sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: var(--orem-burgundy, #6B1D33);
	text-decoration: none;
}
.orem-auth__link-muted:hover { color: var(--orem-burgundy-hover, #862B45); text-decoration: underline; }

/* Submit — usa el ladder .button del theme; aquí sólo layout */
.orem-auth__submit {
	width: 100%;
	height: 52px;
	margin-top: 4px;
	font-family: "Prompt", sans-serif !important;
	font-weight: 500 !important;
	font-size: 15px !important;
	letter-spacing: .02em;
	border-radius: 10px !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Divider */
.orem-auth__divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 26px 0 18px;
	color: #a99e97;
	font-family: "Prompt", sans-serif;
	font-size: 12.5px;
	letter-spacing: .04em;
}
.orem-auth__divider::before,
.orem-auth__divider::after {
	content: "";
	height: 1px;
	flex: 1;
	background: var(--orem-champagne, #E8D8C5);
}

/* Social login (WooCommerce Social Login) */
.orem-auth__social { text-align: center; }
.orem-auth__social .wc-social-login p { display: none !important; }
.orem-auth__social .button-social-login {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: "Prompt", sans-serif !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	margin: 6px !important;
	border-radius: 10px !important;
	border: 1px solid var(--orem-champagne, #E8D8C5) !important;
	background: #fff !important;
	color: var(--orem-ink, #2B2B2B) !important;
	min-height: 46px;
	padding: 0 18px !important;
}
.orem-auth__social .button-social-login:hover { background: var(--orem-pearl, #FAF8F5) !important; }
.orem-auth__social .button-social-login .si {
	width: 1.25em !important;
	height: 1.25em !important;
	background-size: cover !important;
	vertical-align: middle;
}

/* Switch + back */
.orem-auth__switch {
	margin: 26px 0 0;
	text-align: center;
	font-family: "Prompt", sans-serif;
	font-size: 14px;
	font-weight: 300;
	color: #6f645d;
}
.orem-auth__switch a {
	font-weight: 500;
	color: var(--orem-burgundy, #6B1D33);
	text-decoration: none;
}
.orem-auth__switch a:hover { color: var(--orem-burgundy-hover, #862B45); text-decoration: underline; }
.orem-auth__back { margin: 22px 0 0; text-align: center; }
.orem-auth__back a {
	font-family: "Prompt", sans-serif;
	font-size: 12.5px;
	font-weight: 300;
	color: #a99e97;
	text-decoration: none;
}
.orem-auth__back a:hover { color: var(--orem-ink, #2B2B2B); }

/* ---- Notices de WooCommerce ---- */
.orem-auth__notices { margin: 0 0 18px; }
.orem-auth__notices:empty { display: none; }
.orem-auth__notices .woocommerce-error,
.orem-auth__notices .woocommerce-message,
.orem-auth__notices .woocommerce-info {
	list-style: none;
	margin: 0 0 10px;
	padding: 12px 14px;
	border-radius: 10px;
	font-family: "Prompt", sans-serif;
	font-size: 13.5px;
	font-weight: 300;
	line-height: 1.45;
}
.orem-auth__notices .woocommerce-error {
	background: #FBECEC;
	border: 1px solid #E7B9B9;
	color: #8A2B2B;
}
.orem-auth__notices .woocommerce-error li { list-style: none; margin: 0; }
.orem-auth__notices .woocommerce-message,
.orem-auth__notices .woocommerce-info {
	background: var(--orem-nude, #F6EED9);
	border: 1px solid var(--orem-champagne, #E8D8C5);
	color: var(--orem-ink, #2B2B2B);
}
.orem-auth__notices a { color: var(--orem-burgundy, #6B1D33); }

/* No-op (ya logueado) */
.orem-auth__card--noop {
	display: block;
	max-width: 460px;
	padding: 44px;
	text-align: center;
	font-family: "Prompt", sans-serif;
}
.orem-auth__card--noop p { margin: 0 0 16px; color: var(--orem-ink, #2B2B2B); }
.orem-auth__card--noop .orem-auth__submit { width: auto; padding: 0 28px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.orem-auth { padding: 24px 14px 40px; min-height: 0; }
	.orem-auth__card { grid-template-columns: 1fr; max-width: 480px; }
	.orem-auth__panel { display: none; }
	.orem-auth__brand--mobile { display: inline-block; letter-spacing: .3em; text-transform: uppercase; font-family: "Prompt", sans-serif; }
	.orem-auth__form-inner { padding: 36px 26px 30px; max-width: none; }
}

@media (max-width: 480px) {
	.orem-auth__form-inner { padding: 30px 20px 26px; }
	.orem-auth__title { font-size: 23px; }
}
