/* ============================================================
   Componentes compartidos de autenticación (login / registro)
   ============================================================ */

/* Logo sobre tarjeta blanca */
.auth-logo {
	width: 100%;
	max-width: 190px;
	height: auto;
}

/* Campo con icono dentro (no cubierto por utilidades Bootstrap) */
.auth-input {
	position: relative;
}

.auth-input>i {
	position: absolute;
	top: 50%;
	left: 1rem;
	transform: translateY(-50%);
	z-index: 4;
	color: var(--bs-secondary);
	pointer-events: none;
	transition: color 0.2s ease;
}

.auth-input:focus-within>i {
	color: var(--bs-primary);
}

.auth-input .form-control,
.auth-input .form-select {
	border: 1.5px solid var(--bs-border-color);
	border-radius: 0.65rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input .form-control {
	height: 3rem;
	padding-left: 2.75rem;
}

.auth-input .form-select {
	padding-left: 2.75rem;
}

.auth-input .form-control:focus,
.auth-input .form-select:focus {
	border-color: var(--bs-primary);
	box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.12);
}

.auth-input-pw .form-control {
	padding-right: 3rem;
}

/* Botón mostrar / ocultar contraseña */
.auth-toggle {
	position: absolute;
	top: 50%;
	right: 0.35rem;
	transform: translateY(-50%);
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border: 0;
	border-radius: 0.5rem;
	background: transparent;
	color: var(--bs-secondary);
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-toggle:hover {
	color: var(--bs-primary);
	background-color: var(--bs-light);
}

.auth-toggle:focus {
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.12);
}
