/* La página de acceso conserva el estilo del teatro con una lectura más amable. */
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) {
	padding-block: clamp(44px, 5vw, 68px) clamp(56px, 7vw, 88px);
	padding-inline: clamp(16px, 4vw, 20px);
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .page-header,
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .page-content {
	width: min(100%, 560px);
	max-width: 560px;
	margin-inline: auto;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .page-header {
	margin-bottom: 12px;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .page-header .entry-title {
	font-size: clamp(34px, 4vw, 48px);
	line-height: 1.12;
	letter-spacing: -0.035em;
	font-weight: 700;
	text-transform: none;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .tickera-auth-intro {
	max-width: 470px;
	margin: 0 0 26px;
	color: #c7c7c7;
	font-size: clamp(15px, 1.5vw, 17px);
	line-height: 1.5;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) {
	width: 100%;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) :is(login-page, login-password-page) > div {
	width: 100%;
	margin-inline: auto;
	padding: clamp(24px, 4vw, 36px);
	background: #1c1c1c;
	border: 1px solid #393939;
	border-top: 3px solid #e52b28;
	border-radius: 16px;
	box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18);
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) :is(login-otp-form, login-password-form) .form-input-label {
	color: #ededed;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) :is(login-otp-form, login-password-form) input.form-input {
	min-height: 50px;
	background: #0d0d0d;
	border: 1px solid #575757;
	color: #fff;
	border-radius: 8px;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) :is(login-otp-form, login-password-form) input.form-input::placeholder {
	color: #aaa;
	opacity: 1;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth[view="login-password"] login-password-form a {
	color: #ff7874 !important;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) :is(login-otp-form, login-password-form) form > div:last-child,
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) :is(login-otp-form, login-password-form) app-button {
	width: 100%;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) :is(login-otp-form, login-password-form) app-button {
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) :is(login-otp-form, login-password-form) app-button button {
	width: 100%;
	min-height: 48px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) :is(login-otp-form, login-password-form) app-button button:disabled {
	background: #702b2a;
	color: #ddd0d0;
	opacity: 1;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) create-account-cta {
	margin-top: 18px;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) create-account-cta span {
	color: #c7c7c7;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) create-account-cta a {
	color: #ff7874;
}

.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) login-providers a {
	min-height: 48px;
	background: transparent !important;
	border-color: #626262 !important;
	color: #f7f7f7 !important;
	border-radius: 8px;
}

@media (max-width: 600px) {
	.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .page-header,
	.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .page-content {
		width: 100%;
	}

	.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .tickera-auth-intro {
		margin-bottom: 22px;
	}
}

/* El bundle Angular define colores importantes en su capa de utilidades. */
@layer theme {
	.site-main:has(tickera-auth[view="login-password"]) tickera-auth[view="login-password"] login-password-form a {
		color: #ff7874 !important;
	}

	.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) login-providers a {
		background: transparent !important;
		border-color: #626262 !important;
		color: #f7f7f7 !important;
	}
}

/* El paso de verificación reutiliza la tarjeta de acceso. */
.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] otp-input > div {
	width: 100%;
	max-width: none;
	gap: 18px;
}

.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] otp-input h2 {
	color: #f7f7f7;
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.2;
}

.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] otp-input p {
	color: #c7c7c7;
	font-size: 15px;
	line-height: 1.45;
}

.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] otp-input input[maxlength="1"] {
	width: clamp(39px, 8vw, 48px);
	height: 54px;
	background: #0d0d0d;
	border: 1px solid #626262;
	border-radius: 8px;
	color: #fff;
	font-size: 23px;
	box-shadow: none;
}

.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] otp-input input[maxlength="1"]:focus {
	border-color: #e52b28;
	outline: 2px solid rgba(229, 43, 40, .25);
}

.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] otp-input app-button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
}

.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] otp-input app-button button {
	width: 100%;
	min-height: 48px;
	border-radius: 8px;
}

.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] otp-input button.cursor-pointer {
	padding: 4px 0;
	background: transparent;
	border: 0;
	color: #ff7874;
	font-size: 14px;
	line-height: 1.4;
	text-transform: none;
}

@media (max-width: 400px) {
	.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] otp-input input[maxlength="1"] {
		width: 38px;
		height: 48px;
	}

	.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] otp-input > div > div:nth-child(2) > div {
		gap: 6px;
	}
}

/* El build marca sus utilidades como !important; la capa theme prevalece sobre utilities. */
@layer theme {
	.site-main tickera-auth[view="login"] otp-input h2 {
		color: #f7f7f7 !important;
		font-size: clamp(22px, 3vw, 28px) !important;
		line-height: 1.2 !important;
	}

	.site-main tickera-auth[view="login"] otp-input p {
		color: #d1d1d1 !important;
		font-size: 15px !important;
		line-height: 1.45 !important;
	}

	.site-main tickera-auth[view="login"] otp-input input[maxlength="1"] {
		background: #101010 !important;
		border-color: #777 !important;
		color: #fff !important;
	}

	.site-main tickera-auth[view="login"] otp-input input[maxlength="1"]:focus {
		border-color: #ff7370 !important;
		background: #101010 !important;
		box-shadow: 0 0 0 3px rgba(229, 43, 40, .28) !important;
	}

	.site-main tickera-auth[view="login"] otp-input app-button button {
		background: #e52b28 !important;
		color: #fff !important;
		opacity: 1 !important;
	}

	.site-main tickera-auth[view="login"] otp-input app-button button:disabled {
		background: #78302f !important;
		color: #fff !important;
		opacity: 1 !important;
	}

	.site-main tickera-auth[view="login"] otp-input app-button button:not(:disabled):hover {
		background: #c92320 !important;
		color: #fff !important;
	}

	.site-main tickera-auth[view="login"] otp-input button.cursor-pointer {
		color: #ff9994 !important;
		font-size: 15px !important;
	}

	.site-main tickera-auth[view="login"] otp-input button.cursor-pointer:hover {
		color: #ffc0bd !important;
	}
}

/* Acceso por correo: código principal, contraseña alternativa y registro aparte. */
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) {
	padding-top: clamp(24px, 3vw, 40px);
}
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .page-header {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .page-header::before { margin-inline: auto; }
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .page-header .entry-title {
	font-size: clamp(34px, 5vw, 46px);
	font-weight: 600;
	letter-spacing: -.025em;
}
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .tickera-auth-intro {
	max-width: 490px;
	margin: 0 auto 30px;
	text-align: center;
}
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) :is(login-page, login-password-page) > div { border-radius: 20px; }
.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] login-page > div { gap: 0; }
.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] login-otp-form > div > div,
.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] login-providers > div { max-width: none; }
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .tickera-auth-code-guide { margin-bottom: 4px; }
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .tickera-auth-code-guide h2 {
	margin: 0 0 7px;
	color: #fff;
	font-size: clamp(21px, 2.5vw, 24px);
	font-weight: 600;
	line-height: 1.2;
}
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .tickera-auth-code-guide p {
	margin: 0;
	color: #cfcfcf;
	font-size: 14px;
	line-height: 1.5;
}
.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] login-providers {
	display: block;
	position: relative;
	margin-top: 32px;
	padding-top: 26px;
	border-top: 1px solid #414141;
}
.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] login-providers::before {
	content: "O";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	background: #1c1c1c;
	color: #d4d4d4;
	font-size: 13px;
	font-weight: 700;
}
.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] login-providers a {
	min-height: 50px;
	border-radius: 10px;
}
.site-main:has(tickera-auth[view="login"]) tickera-auth[view="login"] login-providers a i { display: none; }
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) tickera-auth:is([view="login"], [view="login-password"]) create-account-cta { display: none; }
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .tickera-auth-register-callout {
	box-sizing: border-box;
	width: min(100%, 560px);
	margin: 18px auto 0;
	padding: 20px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #1d1d1d;
	border: 1px solid #474747;
	border-radius: 14px;
	color: #ededed;
	font-size: 15px;
	font-weight: 600;
}
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .tickera-auth-register-callout a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 16px;
	background: #332121;
	border: 1px solid #b84845;
	border-radius: 9px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease;
}
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .tickera-auth-register-callout a:hover {
	background: #632725;
	border-color: #ed6762;
	color: #fff;
}
.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .tickera-auth-register-callout a:focus-visible {
	outline: 3px solid #ffb8b5;
	outline-offset: 3px;
}
@media (max-width: 600px) {
	.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .tickera-auth-intro { margin-bottom: 24px; }
	.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .tickera-auth-register-callout {
		flex-direction: column;
		align-items: stretch;
		padding: 20px;
		text-align: center;
	}
	.site-main:has(tickera-auth:is([view="login"], [view="login-password"])) .tickera-auth-register-callout a { width: 100%; }
}

/* Contraseña visible solo cuando el usuario lo pide. */
.site-main tickera-auth[view="login-password"] .tickera-auth-password-field { position: relative; }
.site-main tickera-auth[view="login-password"] .tickera-auth-password-field input.form-input { padding-right: 58px; }
.site-main tickera-auth[view="login-password"] .tickera-auth-password-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #d8d8d8;
	cursor: pointer;
}
.site-main tickera-auth[view="login-password"] .tickera-auth-password-toggle svg { display: block; }
.site-main tickera-auth[view="login-password"] .tickera-auth-password-toggle:hover { background: #303030; color: #fff; }
.site-main tickera-auth[view="login-password"] .tickera-auth-password-toggle:focus-visible {
	outline: 2px solid #ff817d;
	outline-offset: -2px;
}

/* Recuperación en la misma tarjeta y escala visual del inicio de sesión. */
.site-main:has(tickera-auth[view="forgot-password"]) {
	padding: clamp(32px, 5vw, 64px) 16px clamp(60px, 7vw, 90px);
}
.site-main:has(tickera-auth[view="forgot-password"]) .page-header {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.site-main:has(tickera-auth[view="forgot-password"]) .page-content {
	width: min(100%, 560px);
	margin-inline: auto;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page > div {
	display: block;
	width: 100%;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page > div > div {
	width: 100%;
	max-width: none;
	margin: 0;
	background: #1c1c1c;
	border: 1px solid #393939;
	border-top: 3px solid #e52b28;
	border-radius: 16px;
	box-shadow: 0 22px 54px rgba(0, 0, 0, .18);
	color: #f7f7f7;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page > div > div > div:first-child {
	padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 36px) 0;
	background: transparent;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page > div > div > div:last-child {
	padding: 0 clamp(24px, 4vw, 36px) clamp(24px, 4vw, 36px);
	background: transparent;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page > div > div > div:first-child > div,
.site-main tickera-auth[view="forgot-password"] forget-password-page > div > div > div:first-child > div > div {
	display: block;
	margin: 0;
	text-align: left;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page h3 {
	margin: 0;
	color: #fff;
	font-size: clamp(25px, 3vw, 31px);
	font-weight: 650;
	line-height: 1.15;
	letter-spacing: -.025em;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page h3 + div { margin-top: 10px; }
.site-main tickera-auth[view="forgot-password"] forget-password-page h3 + div p {
	margin: 0;
	color: #ccc;
	font-size: 15px;
	line-height: 1.5;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page form { margin-top: 8px; gap: 20px; }
.site-main tickera-auth[view="forgot-password"] forget-password-page form-input label {
	color: #ededed;
	font-size: 15px;
	font-weight: 600;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page input.form-input {
	width: 100%;
	min-height: 50px;
	background: #0d0d0d;
	border: 1px solid #575757;
	border-radius: 8px;
	color: #fff;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page input.form-input::placeholder { color: #aaa; opacity: 1; }
.site-main tickera-auth[view="forgot-password"] forget-password-page input.form-input:focus {
	border-color: #e52b28;
	box-shadow: 0 0 0 3px rgba(229, 43, 40, .25);
}
.site-main tickera-auth[view="forgot-password"] forget-password-page form > div:last-child {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page :is(app-button, app-link-button),
.site-main tickera-auth[view="forgot-password"] forget-password-page :is(app-button button, app-link-button a) { display: flex; width: 100%; }
.site-main tickera-auth[view="forgot-password"] forget-password-page :is(app-button, app-link-button) {
	padding: 0;
	border: 0;
	background: transparent;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page :is(app-button button, app-link-button a) {
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 650;
	text-align: center;
	text-decoration: none;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page app-button button {
	background: #e52b28;
	border: 1px solid #e52b28;
	color: #fff;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page app-button button:not(:disabled):hover { background: #c92320; border-color: #c92320; }
.site-main tickera-auth[view="forgot-password"] forget-password-page app-button button:disabled { background: #702b2a; border-color: #702b2a; color: #e9dada; opacity: 1; }
.site-main tickera-auth[view="forgot-password"] forget-password-page app-link-button a {
	gap: 8px;
	background: transparent;
	border: 1px solid #626262;
	color: #f7f7f7;
}
.site-main tickera-auth[view="forgot-password"] forget-password-page app-link-button a:hover { background: #2d2d2d; border-color: #888; }
.site-main tickera-auth[view="forgot-password"] forget-password-page :is(button, a):focus-visible { outline: 3px solid #ffaaa7; outline-offset: 3px; }

@layer theme {
	.site-main tickera-auth[view="login-password"] login-password-form input.form-input:focus {
		border-color: #e52b28 !important;
		box-shadow: 0 0 0 3px rgba(229, 43, 40, .3) !important;
	}
	.site-main tickera-auth[view="login-password"] .tickera-auth-password-toggle { background: transparent !important; color: #d8d8d8 !important; }
	.site-main tickera-auth[view="login-password"] .tickera-auth-password-toggle:hover { background: #303030 !important; color: #fff !important; }
	.site-main tickera-auth[view="forgot-password"] forget-password-page > div > div,
	.site-main tickera-auth[view="forgot-password"] forget-password-page > div > div > div { background: #1c1c1c !important; }
	.site-main tickera-auth[view="forgot-password"] forget-password-page h3 { color: #fff !important; font-size: clamp(25px, 3vw, 31px) !important; }
	.site-main tickera-auth[view="forgot-password"] forget-password-page h3 + div p { color: #ccc !important; font-size: 15px !important; }
	.site-main tickera-auth[view="forgot-password"] forget-password-page form-input label { color: #ededed !important; }
	.site-main tickera-auth[view="forgot-password"] forget-password-page input.form-input { background: #0d0d0d !important; color: #fff !important; }
	.site-main tickera-auth[view="forgot-password"] forget-password-page input.form-input:focus { border-color: #e52b28 !important; box-shadow: 0 0 0 3px rgba(229, 43, 40, .3) !important; }
	.site-main tickera-auth[view="forgot-password"] forget-password-page form > div:last-child { flex-direction: column !important; gap: 12px !important; }
	.site-main tickera-auth[view="forgot-password"] forget-password-page app-button button { background: #e52b28 !important; color: #fff !important; }
	.site-main tickera-auth[view="forgot-password"] forget-password-page app-button button:disabled { background: #702b2a !important; }
	.site-main tickera-auth[view="forgot-password"] forget-password-page app-link-button a { background: transparent !important; border-color: #626262 !important; color: #f7f7f7 !important; }
	.site-main tickera-auth[view="forgot-password"] forget-password-page app-link-button a:hover { background: #2d2d2d !important; border-color: #888 !important; }
}
