/* ===================================================
   LOGIN — Taekwondo / Fundación Ingenius Bolivia
   Paleta: teal oscuro del logo  (#04342C / #0F6E56 / #1D9E75)
   =================================================== */

/* ---------- Fondo de página ---------- */
.page-bg {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
	background: linear-gradient(145deg, #04342C 0%, #0F6E56 55%, #1D9E75 100%);
}

/* ---------- Tarjeta central ---------- */
.login-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 2rem 2rem 2.25rem;
	width: 100%;
	max-width: 390px;
	border: 1px solid rgba(0,0,0,0.06);
	box-shadow: 0 24px 48px -12px rgba(4, 52, 44, 0.35);
	animation: slideUp 0.4s ease;
}

@keyframes slideUp {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Marca / logo ---------- */
.brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 1.5rem;
}

.brand img {
	width: 90px;
	height: 90px;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.brand img:hover {
	transform: translateY(-4px);
}

.brand-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.brand-name {
	font-size: 16px;
	font-weight: 700;
	color: #04342C;
	letter-spacing: 0.02em;
}

.brand-sub {
	font-size: 11px;
	color: #5F5E5A;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---------- Divisor ---------- */
.divider {
	height: 1px;
	background: #e5e7eb;
	margin-bottom: 1.5rem;
}

/* ---------- Tabs de rol ---------- */
.role-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	background: #f3f4f6;
	padding: 4px;
	border-radius: 12px;
	margin-bottom: 1.5rem;
}

.role-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	background: transparent;
	border: none;
	border-radius: 9px;
	padding: 8px 4px;
	font-size: 12px;
	font-weight: 400;
	color: #5F5E5A;
	cursor: pointer;
	transition: all 0.18s ease;
	font-family: TasaSemiBold, sans-serif;
}

.role-btn svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.role-btn.active {
	background: #ffffff;
	color: #0F6E56;
	font-weight: 700;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.role-btn:hover:not(.active) {
	background: rgba(255,255,255,0.5);
	color: #04342C;
}

/* ---------- Campos ---------- */
.fields {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 0.75rem;
}

.field-wrap {
	position: relative;
}

.field-icon {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: #9ca3af;
	pointer-events: none;
}

.field-wrap input {
	width: 100%;
	height: 46px;
	padding: 0 14px 0 40px;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	font-size: 14px;
	color: #1a1a1a;
	background: #f9fafb;
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	font-family: TasaSemiBold, sans-serif;
}

.field-wrap input:focus {
	border-color: #1D9E75;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15);
}

.field-wrap input::placeholder {
	color: #b0b7c3;
	font-weight: 400;
}

/* ---------- Mensaje de error ---------- */
.error_message {
	font-size: 13px;
	color: #A32D2D;
	min-height: 20px;
	padding: 0 2px;
	margin-bottom: 0.5rem;
}

/* ---------- Botón ingresar ---------- */
.btn-enter {
	width: 100%;
	height: 48px;
	background: #0F6E56;
	color: #E1F5EE;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
	box-shadow: 0 6px 18px -4px rgba(15, 110, 86, 0.45);
	font-family: TasaSemiBold, sans-serif;
}

.btn-enter svg {
	width: 18px;
	height: 18px;
}

.btn-enter:hover {
	background: #085041;
	box-shadow: 0 8px 22px -4px rgba(8, 80, 65, 0.5);
}

.btn-enter:active {
	transform: scale(0.98);
	box-shadow: none;
}

/* ---------- Barra de cinturones ---------- */
.belt-bar {
	display: flex;
	gap: 3px;
	margin-top: 1.5rem;
}

.belt {
	height: 4px;
	flex: 1;
	border-radius: 2px;
	display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 420px) {
	.login-card {
		padding: 1.5rem 1.25rem 2rem;
	}

	.brand img {
		width: 72px;
		height: 72px;
	}

	.brand-name {
		font-size: 14px;
	}

	.role-btn {
		font-size: 11px;
	}

	.field-wrap input {
		font-size: 13px;
	}

	.btn-enter {
		font-size: 14px;
	}
}