/* ============================================================
   Moderato - Auth (login, 2FA, recuperación)
   ============================================================ */
.auth-main {
	min-height: 100svh;
	display: grid;
	place-items: center;
	position: relative;
	overflow: hidden;
	background: #f4f6fb;
	padding: 32px 16px;
}

/* Blobs animados de fondo */
.auth-main::before,
.auth-main::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.55;
	pointer-events: none;
	animation: mod-blob 20s ease-in-out infinite alternate;
}
.auth-main::before {
	width: 560px;
	height: 560px;
	background: rgba(79, 70, 229, 0.28);
	top: -140px;
	right: -100px;
}
.auth-main::after {
	width: 500px;
	height: 500px;
	background: rgba(5, 150, 105, 0.22);
	bottom: -150px;
	left: -110px;
	animation-delay: -10s;
}
@keyframes mod-blob {
	from { transform: translate(0, 0) scale(1); }
	to   { transform: translate(46px, 34px) scale(1.18); }
}

/* Entrada de la tarjeta */
.auth-card {
	position: relative;
	z-index: 1;
	width: min(100%, 430px);
	background: #ffffff;
	border: 1px solid #e6e9f2;
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(17, 24, 39, 0.1);
	padding: 38px 36px;
	animation: mod-auth-in 0.45s ease both;
}
@keyframes mod-auth-in {
	from { opacity: 0; transform: translateY(16px) scale(0.985); }
	to   { opacity: 1; transform: none; }
}

[data-bs-theme="dark"] .auth-main {
	background: #0e1122;
}
[data-bs-theme="dark"] .auth-main::before {
	background: rgba(99, 102, 241, 0.3);
}
[data-bs-theme="dark"] .auth-main::after {
	background: rgba(5, 150, 105, 0.18);
}
[data-bs-theme="dark"] .auth-card {
	background: #161a30;
	border-color: #262b47;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
[data-bs-theme="dark"] .auth-card .form-control {
	background: #12152a;
	color: #e7e9f3;
	border-color: #2c3154;
}

.auth-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 26px;
}
.auth-brand img {
	width: 46px;
	height: 46px;
	border-radius: 12px;
}
.auth-brand-name {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--mod-ink);
}

.auth-eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	margin-bottom: 12px;
	border: 1px solid #c7d2fe;
	border-radius: 999px;
	background: var(--mod-primary-soft);
	color: var(--mod-primary-dark);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
[data-bs-theme="dark"] .auth-eyebrow {
	border-color: rgba(99, 102, 241, 0.5);
	color: #a5b4fc;
}

.auth-title {
	margin: 0 0 6px;
	font-size: 1.7rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--mod-ink);
}

.auth-description {
	margin: 0 0 22px;
	color: var(--mod-muted);
	font-size: 0.93rem;
	line-height: 1.55;
}

.auth-alert {
	border: 1px solid #fecdd3;
	border-radius: 12px;
	background: #fff1f2;
	color: var(--mod-danger, #b42318);
	padding: 12px 14px;
	margin-bottom: 20px;
	font-size: 0.9rem;
	line-height: 1.5;
}

.auth-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 2px 0 20px;
	font-size: 0.88rem;
	color: var(--mod-muted);
}

.auth-button {
	width: 100%;
	min-height: 50px;
	border-radius: 12px;
	font-weight: 700;
}

.auth-links {
	margin-top: 22px;
	text-align: center;
	font-size: 0.9rem;
	color: var(--mod-muted);
}
.auth-links a {
	color: var(--mod-primary);
	font-weight: 700;
	text-decoration: none;
}

.auth-code-inputs {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 6px 0 22px;
}
.auth-code-inputs .form-control {
	width: 52px;
	height: 58px;
	text-align: center;
	font-size: 1.4rem;
	font-weight: 700;
	border-radius: 12px;
}

/* Glow en inputs enfocados */
.auth-card .form-control:focus {
	border-color: var(--mod-primary);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.16), 0 6px 18px rgba(79, 70, 229, 0.12);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
