/* =============================================================================
 * UBICACIÓN:		/assets/css/pages/01-auth.css
 * ARCHIVO:		01-auth.css
 * DESCRIPCIÓN TÉCNICA:	Estilos del bloque de autenticación alineados con la
 *			línea corporativa premium de MERCAFUT y con una
 *			columna derecha más limpia, centrada y orientada a conversión.
 * DESCRIPCIÓN FÁCIL:	Da a login y register una apariencia seria, elegante y
 *			coherente con la Home pública del proyecto.
 * =============================================================================
 * ÍNDICE
 * 1. Variables
 * 2. Wrapper general
 * 3. Layout principal
 * 4. Hero corporativo
 * 5. Card principal
 * 6. Formularios
 * 7. Separadores y bloques inferiores
 * 8. Estados y utilidades
 * 9. Responsive tablet
 * 10. Responsive desktop
 * =============================================================================
 */

/* =============================================================================
 * 1. VARIABLES
 * ============================================================================= */

:root{
	--mf-auth-bg: #07111f;
	--mf-auth-bg-soft: #0a1422;
	--mf-auth-brand: var(--brand-primary, #002171);
	--mf-auth-brand-dark: var(--brand-primary-dark, #001a5a);
	--mf-auth-brand-light: var(--brand-primary-light, #163a8f);
	--mf-auth-accent: var(--brand-accent, #2ABAF9);
	--mf-auth-accent-light: var(--brand-accent-light, #7dd8fb);

	--mf-auth-card: rgba(255,255,255,.98);
	--mf-auth-card-soft: #f3f7fb;
	--mf-auth-line: #d9e1ec;
	--mf-auth-line-strong: rgba(0, 33, 113, 0.10);
	--mf-auth-text: #111111;
	--mf-auth-ink: #1f3658;
	--mf-auth-muted: #475569;

	--mf-auth-radius: 28px;
	--mf-auth-gap: 18px;
	--mf-auth-max: 1240px;

	--mf-auth-shadow-1: 0 24px 60px rgba(0, 0, 0, 0.22);
	--mf-auth-shadow-2: 0 12px 28px rgba(0, 33, 113, 0.06);
	--mf-auth-shadow-3: 0 18px 36px rgba(0, 33, 113, 0.16);

	--mf-auth-focus: color-mix(in srgb, var(--mf-auth-accent) 46%, transparent);
	--mf-auth-cta-bg: linear-gradient(180deg, #0f5f98 0%, #0b5a93 100%);
}

/* =============================================================================
 * 2. WRAPPER GENERAL
 * ============================================================================= */

.mf-auth{
	width:100%;
	min-height:100dvh;
	background:
		radial-gradient(circle at top left, rgba(42, 186, 249, 0.12), transparent 26rem),
		radial-gradient(circle at top right, rgba(0, 33, 113, 0.16), transparent 24rem),
		linear-gradient(180deg, var(--mf-auth-bg) 0%, var(--mf-auth-bg-soft) 100%);
}

.mf-auth *{
	box-sizing:border-box;
}

/* =============================================================================
 * 3. LAYOUT PRINCIPAL
 * ============================================================================= */

.log-reg{
	min-height:100dvh;
	display:flex;
	flex-direction:column;
	gap:var(--mf-auth-gap);
	padding:18px 16px 28px;
	align-items:center;
	justify-content:flex-start;
}

.log-reg > *{
	width:100%;
	max-width:var(--mf-auth-max);
}

.log-reg .col-7{
	width:100%;
	max-width:760px;
}

/* =============================================================================
 * 4. HERO CORPORATIVO
 * ============================================================================= */

.log-reg .image{
	position:relative;
	overflow:hidden;
	border-radius:32px;
	min-height:320px;
	border:1px solid rgba(255,255,255,.12);
	box-shadow:var(--mf-auth-shadow-1);
	isolation:isolate;
}

.log-reg .image.image-log{
	background:
		linear-gradient(180deg, rgba(4, 14, 36, 0.22) 0%, rgba(4, 14, 36, 0.42) 55%, rgba(4, 14, 36, 0.56) 100%),
		radial-gradient(circle at top left, rgba(42, 186, 249, 0.14), transparent 26rem),
		radial-gradient(circle at top right, rgba(0, 33, 113, 0.22), transparent 24rem),
		linear-gradient(135deg, #09172a 0%, #0d2240 100%);
}

.log-reg .image.image-reg{
	background:
		linear-gradient(180deg, rgba(4, 14, 36, 0.18) 0%, rgba(4, 14, 36, 0.40) 55%, rgba(4, 14, 36, 0.52) 100%),
		radial-gradient(circle at top left, rgba(42, 186, 249, 0.12), transparent 22rem),
		radial-gradient(circle at top right, rgba(0, 33, 113, 0.18), transparent 24rem),
		linear-gradient(135deg, #0b1930 0%, #143357 100%);
}

.auth-hero__backdrop{
	position:absolute;
	inset:0;
	background:
		linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
		radial-gradient(circle at 20% 18%, rgba(255,255,255,.08), transparent 14rem),
		radial-gradient(circle at 82% 20%, rgba(255,255,255,.06), transparent 16rem);
	pointer-events:none;
	z-index:1;
}

.auth-hero__content{
	position:relative;
	z-index:2;
	display:flex;
	flex-direction:column;
	gap:18px;
	min-height:320px;
	padding:18px;
}

.auth-hero__topbar{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	flex-wrap:wrap;
}

.auth-hero__brandlock{
	display:inline-flex;
	align-items:center;
	gap:10px;
	padding:9px 12px;
	border-radius:999px;
	background:rgba(255,255,255,.08);
	border:1px solid rgba(255,255,255,.12);
	backdrop-filter:blur(10px);
}

.auth-hero__brand-dot{
	width:10px;
	height:10px;
	border-radius:999px;
	background:var(--mf-auth-accent);
	box-shadow:0 0 0 4px rgba(42,186,249,.16);
	flex:0 0 auto;
}

.auth-hero__brand-text{
	color:#ffffff;
	font-size:.78rem;
	font-weight:900;
	letter-spacing:.14em;
	text-transform:uppercase;
}

.auth-hero__trust{
	display:flex;
	flex-wrap:wrap;
	gap:8px;
}

.auth-hero__trust-pill{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-height:34px;
	padding:0 12px;
	border-radius:999px;
	background:rgba(255,255,255,.08);
	border:1px solid rgba(255,255,255,.12);
	color:rgba(255,255,255,.92);
	font-size:.78rem;
	font-weight:800;
	letter-spacing:.04em;
	text-transform:uppercase;
	backdrop-filter:blur(10px);
}

.auth-hero__copy{
	max-width:620px;
	margin-top:2px;
}

.auth-hero__eyebrow{
	display:inline-block;
	margin:0 0 .75rem;
	color:var(--mf-auth-accent-light);
	font-size:.76rem;
	font-weight:800;
	letter-spacing:.12em;
	line-height:1.2;
	text-transform:uppercase;
}

.auth-hero__title{
	margin:0 0 .9rem;
	color:#ffffff;
	font-family:Georgia, "Times New Roman", serif;
	font-size:clamp(1.95rem, 7vw, 3rem);
	font-weight:500;
	line-height:1.02;
	letter-spacing:-.04em;
	text-wrap:balance;
	max-width:12ch;
}

.auth-hero__text{
	margin:0;
	color:rgba(255,255,255,.92);
	font-size:1rem;
	line-height:1.62;
	max-width:46ch;
}

.auth-hero__meta{
	display:grid;
	gap:10px;
	margin-top:1rem;
	max-width:560px;
}

.auth-hero__meta-item{
	padding:14px 14px;
	border-radius:20px;
	background:rgba(255,255,255,.08);
	border:1px solid rgba(255,255,255,.12);
	box-shadow:0 10px 24px rgba(0,0,0,.10);
	backdrop-filter:blur(10px);
}

.auth-hero__meta-item strong{
	display:block;
	color:#ffffff;
	font-size:.94rem;
	font-weight:800;
	line-height:1.25;
	margin-bottom:4px;
}

.auth-hero__meta-item span{
	display:block;
	color:rgba(255,255,255,.78);
	font-size:.88rem;
	line-height:1.45;
}

.auth-hero__bottom{
	display:grid;
	gap:12px;
	margin-top:auto;
}

.auth-hero__card{
	border-radius:22px;
	border:1px solid rgba(255,255,255,.12);
	box-shadow:0 12px 28px rgba(0,0,0,.12);
	backdrop-filter:blur(12px);
}

.auth-hero__card--primary{
	padding:16px 16px 15px;
	background:
		linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
}

.auth-hero__card-kicker{
	color:var(--mf-auth-accent-light);
	font-size:.73rem;
	font-weight:900;
	letter-spacing:.12em;
	line-height:1.2;
	text-transform:uppercase;
	margin-bottom:6px;
}

.auth-hero__card-title{
	color:#ffffff;
	font-family:Georgia, "Times New Roman", serif;
	font-size:1.32rem;
	font-weight:500;
	line-height:1.08;
	margin-bottom:6px;
}

.auth-hero__card-text{
	color:rgba(255,255,255,.82);
	font-size:.94rem;
	line-height:1.5;
}

.auth-hero__card-grid{
	display:grid;
	grid-template-columns:1fr;
	gap:10px;
}

.auth-hero__card--mini{
	padding:14px;
	background:rgba(255,255,255,.08);
}

.auth-hero__mini-value{
	color:#ffffff;
	font-size:.95rem;
	font-weight:800;
	line-height:1.2;
	margin-bottom:3px;
}

.auth-hero__mini-text{
	color:rgba(255,255,255,.76);
	font-size:.84rem;
	line-height:1.35;
}

/* =============================================================================
 * 5. CARD PRINCIPAL
 * ============================================================================= */

.log-reg .log-reg-inner{
	position:relative;
	background:#f6f7fb;
	border:1px solid rgba(0, 33, 113, 0.08);
	border-radius:0;
	box-shadow:none;
	padding:30px 22px 28px;
	color:var(--mf-auth-text);
}

.log-reg .log-reg-inner::before{
	display:none;
}

.log-reg .section-header{
	margin:0 auto 24px auto;
	max-width:520px;
	text-align:center;
}

.mf-auth-chip{
	display:none;
}

.log-reg .section-header .title{
	margin:0 0 14px 0;
	color:#0f5f98;
	font-family:Arial, Helvetica, sans-serif;
	font-size:clamp(2rem, 6vw, 3rem);
	font-weight:800;
	line-height:1.08;
	letter-spacing:-.03em;
	text-wrap:balance;
}

.log-reg .section-header p{
	margin:0 auto;
	color:#667085;
	font-size:1rem;
	line-height:1.6;
	max-width:28ch;
}

.log-reg .main-content{
	margin:0 auto;
	max-width:480px;
}

.log-reg .content-title{
	display:none;
}

.mf-auth-header-simple{
	text-align:center;
}

.mf-auth-form{
	display:block;
}

/* =============================================================================
 * 6. FORMULARIOS
 * ============================================================================= */

.log-reg .form-group{
	margin-bottom:22px;
}

.log-reg label{
	display:block;
	margin-bottom:10px;
	color:#5b6472;
	font-size:.96rem;
	font-weight:700;
	line-height:1.35;
}

.log-reg .svg-icon{
	display:none;
}

.log-reg .form-control,
.log-reg select.form-control,
.log-reg input.form-control{
	width:100%;
	min-height:60px;
	padding:16px 18px;
	border-radius:10px;
	border:1px solid #cfdcf0;
	background:#eaf1fb;
	color:#111111;
	font-size:1rem;
	font-weight:500;
	box-shadow:none;
	transition:
		border-color .18s ease,
		box-shadow .18s ease,
		background-color .18s ease;
}

.log-reg .form-control::placeholder{
	color:#8d9aab;
}

.log-reg .form-control:hover{
	border-color:#bfd2ea;
	background:#edf3fc;
}

.log-reg .form-control:focus{
	outline:none;
	border-color:#9ec2e8;
	box-shadow:0 0 0 3px rgba(42, 186, 249, 0.12);
	background:#edf3fc;
}

.log-reg .form-control.is-invalid,
.log-reg .form-check-input.is-invalid{
	border-color:#dc2626;
}

.log-reg .invalid-feedback{
	display:block;
	margin-top:8px;
	color:#b91c1c;
	font-size:.88rem;
	font-weight:700;
}

.log-reg .form-text{
	display:block;
	margin-top:14px;
	color:#7a8595;
	font-size:.86rem;
	line-height:1.45;
}

.log-reg .form-check{
	display:grid;
	grid-template-columns:20px 1fr;
	column-gap:10px;
	row-gap:4px;
	align-items:start;
	padding:0;
	background:transparent;
	border:0;
	border-radius:0;
	margin-top:8px;
}

.log-reg .form-check-input{
	width:18px;
	height:18px;
	margin-top:3px;
	border-radius:5px;
	border:1px solid #aebed5;
}

.log-reg .form-check-label{
	margin:0;
	color:#5f6b7c;
	font-weight:500;
	line-height:1.5;
}

.log-reg .btn.btn-primary{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:10px;
	width:100%;
	min-height:58px;
	padding:1rem 1.4rem;
	border:0;
	border-radius:999px;
	background:#0f5f98;
	color:#ffffff;
	font-size:1rem;
	font-weight:800;
	letter-spacing:0;
	box-shadow:0 14px 28px rgba(15, 95, 152, 0.24);
	transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
	margin-top:4px;
}

.log-reg .btn.btn-primary:hover{
	transform:translateY(-1px);
	box-shadow:0 18px 32px rgba(15, 95, 152, 0.26);
	filter:brightness(1.02);
}

.log-reg .btn.btn-primary .svg-icon{
	display:none;
}

.log-reg a{
	color:#0f5f98;
	text-decoration:none;
}

.log-reg a:hover{
	text-decoration:underline;
}

.mf-auth-inline-link{
	margin:-4px 0 18px 0;
	text-align:center;
}

.mf-auth-inline-link a{
	color:#0f5f98;
	font-size:.98rem;
	font-weight:700;
}

.mf-auth-legal{
	margin:16px auto 0 auto;
	color:#7a8595;
	font-size:.92rem;
	line-height:1.55;
	text-align:center;
	max-width:34ch;
}

.mf-auth-honeypot{
	position:absolute;
	left:-9999px;
	width:1px;
	height:1px;
	overflow:hidden;
}

/* =============================================================================
 * 7. SEPARADORES Y BLOQUES INFERIORES
 * ============================================================================= */

.log-reg .or{
	position:relative;
	text-align:center;
	margin:28px 0 22px;
}

.log-reg .or::before{
	content:"";
	position:absolute;
	left:0;
	right:0;
	top:50%;
	height:1px;
	background:#d8e2f0;
	transform:translateY(-50%);
}

.log-reg .or p{
	position:relative;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	margin:0 auto;
	padding:0 16px;
	background:#f6f7fb;
	color:#000000;
	font-size:1rem;
	font-weight:800;
}

.log-reg .or-content{
	width:100%;
	display:flex;
	justify-content:center;
	align-items:center;
	text-align:center;
	color:#475569;
}

.log-reg .or-content span,
.log-reg .or-content p{
	color:#475569;
}

.log-reg .or-signup{
	display:flex;
	justify-content:center;
	align-items:center;
	gap:6px;
	text-align:center;
	width:100%;
	max-width:360px;
	margin:0 auto;
}

.log-reg .or-signup span{
	text-align:center;
}

.log-reg .or-signup a{
	display:inline-block;
	text-align:center;
}

.log-reg .or-signup{
	display:flex;
	justify-content:center;
	align-items:center;
	flex-wrap:wrap;
	gap:4px;
	width:100%;
}

.log-reg .or-signup a{
	display:inline-block;
}

.log-reg .benefits-list{
	display:none;
}

/* =============================================================================
 * 8. ESTADOS Y UTILIDADES
 * ============================================================================= */

.log-reg .alert{
	margin-bottom:18px;
	padding:13px 14px;
	border-radius:14px;
}

.log-reg .alert-danger{
	background:#fef2f2;
	border:1px solid #fecaca;
	color:#991b1b;
}

/* =============================================================================
 * 8.1 AJUSTES MOBILE Y SCROLL
 * ============================================================================= */

@media (max-width: 991.98px){
	.log-reg .image{
		display:none;
	}
}

@media (min-width: 992px){
	html,
	body{
		height:100%;
		overflow:hidden;
	}

	.mf-auth{
		min-height:100dvh;
		height:100dvh;
		overflow:hidden;
	}

	.log-reg{
		min-height:100dvh;
		height:100dvh;
		overflow:hidden;
		padding-top:24px;
		padding-bottom:24px;
	}

	.log-reg .image,
	.log-reg .log-reg-inner,
	.auth-hero__content{
		min-height:0;
		height:100%;
	}
}

@media (min-width: 992px){
	.mf-auth--register .log-reg .col-7{
		height:100%;
	}

	.mf-auth--register .log-reg .log-reg-inner{
		height:100%;
		overflow:hidden;
		justify-content:flex-start;
	}

	.mf-auth--register .log-reg .main-content{
		flex:1 1 auto;
		max-width:none;
		min-height:0;
		overflow-y:auto;
		overflow-x:hidden;
		padding-right:10px;
		margin-right:-10px;
	}

	.mf-auth--register .log-reg .main-content::-webkit-scrollbar{
		width:10px;
	}

	.mf-auth--register .log-reg .main-content::-webkit-scrollbar-track{
		background:rgba(217, 225, 236, 0.55);
		border-radius:999px;
	}

	.mf-auth--register .log-reg .main-content::-webkit-scrollbar-thumb{
		background:rgba(15, 95, 152, 0.34);
		border-radius:999px;
		border:2px solid rgba(246, 247, 251, 0.9);
	}

	.mf-auth--register .log-reg .main-content{
		scrollbar-width:thin;
		scrollbar-color:rgba(15, 95, 152, 0.34) rgba(217, 225, 236, 0.55);
	}
}

/* =============================================================================
 * 9. RESPONSIVE TABLET
 * ============================================================================= */

@media (min-width: 768px){

	.log-reg{
		padding:24px 22px 34px;
	}

	.auth-hero__content{
		padding:22px;
		min-height:420px;
	}

	.auth-hero__meta{
		grid-template-columns:repeat(2, minmax(0, 1fr));
		max-width:unset;
	}

	.auth-hero__card-grid{
		grid-template-columns:repeat(3, minmax(0, 1fr));
	}

	.log-reg .log-reg-inner{
		padding:40px 40px 34px;
		border-radius:30px;
		box-shadow:
			0 18px 42px rgba(0, 33, 113, 0.07),
			0 6px 14px rgba(15, 23, 42, 0.04);
		background:#f6f7fb;
	}

	.log-reg .section-header{
		max-width:540px;
		margin-bottom:28px;
	}

	.log-reg .main-content{
		max-width:480px;
	}
}

/* =============================================================================
 * 10. RESPONSIVE DESKTOP
 * ============================================================================= */

@media (min-width: 992px){

	.log-reg{
		padding:30px 28px 38px;
		flex-direction:row;
		align-items:stretch;
		justify-content:center;
	}

	.log-reg > *{
		max-width:unset;
	}

	.log-reg .image{
    	width:min(640px, 50vw);
    	height:100%;
    	flex:0 0 auto;
    }
	.auth-hero__content{
    	height:100%;
    	padding:26px;
    	gap:20px;
    }

	.auth-hero__topbar{
		align-items:flex-start;
	}

	.auth-hero__copy{
		margin-top:6px;
		max-width:560px;
	}

	.auth-hero__title{
		font-size:clamp(2.3rem, 2.7vw, 3.15rem);
		max-width:11ch;
	}

	.auth-hero__text{
		font-size:1.03rem;
		max-width:44ch;
	}

	.auth-hero__meta{
		grid-template-columns:1fr;
		max-width:440px;
	}

	.auth-hero__meta-item{
		padding:15px 16px;
	}

	.auth-hero__card--primary{
		padding:18px 18px 17px;
	}

	.auth-hero__card-title{
		font-size:1.42rem;
	}

	.log-reg .col-7{
    	width:460px;
    	max-width:460px;
    	flex:0 0 460px;
    }

	.log-reg .log-reg-inner{
    	height:100%;
    	padding:42px 44px 36px;
    	border-radius:34px;
    	display:flex;
    	flex-direction:column;
    	justify-content:center;
    }

	.log-reg .section-header .title{
		font-size:clamp(2.2rem, 2.5vw, 3rem);
	}

	.log-reg .section-header p{
		font-size:1rem;
		max-width:30ch;
	}
}

.log-reg .or-content .or-signup{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	justify-content:center;
	gap:4px;
	text-align:center;
}