/* Estils personalitzats per a l'àrea reservada de login */

/* Eliminar scroll indicators blaus i altres efectes del navegador */
* {
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}

*::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

/* Eliminar focus outline blau per defecte */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Eliminar highlight color blau de selecció */
*::selection {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

*::-moz-selection {
	background: rgba(255, 255, 255, 0.2);
	color: inherit;
}


/* Eliminar efectes blaus d'overflow i scroll */
html, body {
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
	display: none;
}

/* Eliminar indicadors de scroll blaus específics del navegador */
.container-fluid {
	overflow: hidden;
}

/* Evitar scroll horizontal i vertical no desitjat */
#backgroundImage {
	overflow: hidden;
	position: fixed;
	width: 100vw;
	height: 100vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}
body.authentication-bg{
	background: transparent !important;
	overflow: hidden !important;
}
/* Eliminar possibles efectes blaus de transició */
.bg-overlay {
	transition: none !important;
}

/* Assegurar que no hi hagi scroll bars visibles */
.container-fluid,
.row,
.col-12,
.card {
	overflow: visible;
}

/* Eliminar efectes blaus de focus en inputs */
.form-control:focus {
	border-color: rgba(255, 255, 255, 0.5) !important;
	box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
	outline: none !important;
}

/* Eliminar efectes blaus de botó */
.btn:focus,
.btn:active {
	box-shadow: none !important;
	outline: none !important;
}

.btn-outline-light:focus,
.btn-outline-light:active {
	box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
	outline: none !important;
}

/* Animació de càrrega sense efectes blaus */
.loaded {
	opacity: 1;
	transition: opacity 0.3s ease-in-out;
}

/* Animació de sacsejada sense efectes blaus */
.shake-animation {
	animation: shake 0.5s ease-in-out;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

/* Evitar qualsevol scroll indicator blau en dispositius tàctils */
@media (hover: none) and (pointer: coarse) {
	* {
		-webkit-overflow-scrolling: auto;
		overflow-scrolling: auto;
	}
}

/* Assegurar que no hi hagi margin collapse que pugui causar efectes blaus */
body {
	margin: 0;
	padding: 0;
	border: none;
}

/* Eliminar possibles efectes blaus de transició en el loading */
body.loading {
	overflow: hidden;
}

/* Evitar scroll en orientació landscape en mòbils */
@media screen and (orientation: landscape) and (max-height: 500px) {
	html, body {
		overflow: hidden;
		height: 100vh;
	}
	
	#backgroundImage {
		height: 100vh;
		max-height: 100vh;
	}
}

/* Notificacions minimalistes i discretes */
.alert {
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	color: rgba(255, 255, 255, 0.9) !important;
	border-radius: 8px !important;
	padding: 12px 16px !important;
	font-size: 0.9rem !important;
	font-weight: 400 !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
	transition: all 0.3s ease !important;
	margin-bottom: 1rem !important;
}

/* Notificació d'error - molt subtil */
.alert-danger {
	background: rgba(220, 53, 69, 0.08) !important;
	border-color: rgba(220, 53, 69, 0.15) !important;
	color: rgba(255, 200, 200, 0.95) !important;
}

/* Notificació d'èxit - molt subtil */
.alert-success {
	background: rgba(25, 135, 84, 0.08) !important;
	border-color: rgba(25, 135, 84, 0.15) !important;
	color: rgba(200, 255, 200, 0.95) !important;
}

/* Notificació d'informació - molt subtil */
.alert-info {
	background: rgba(13, 202, 240, 0.06) !important;
	border-color: rgba(13, 202, 240, 0.12) !important;
	color: rgba(200, 240, 255, 0.9) !important;
}

/* Animació d'entrada suau per les notificacions */
.alert:not(.d-none) {
	animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Hover subtil per les notificacions */
.alert:hover {
	background: rgba(255, 255, 255, 0.08) !important;
	transform: translateY(-1px);
}

.alert-danger:hover {
	background: rgba(220, 53, 69, 0.12) !important;
}

.alert-success:hover {
	background: rgba(25, 135, 84, 0.12) !important;
}

.alert-info:hover {
	background: rgba(13, 202, 240, 0.1) !important;
}

/* Assegurar que les notificacions no siguin massa prominents */
#msg {
	position: relative;
	z-index: 5;
	max-width: 400px;
	margin: 0 auto 1rem auto;
}

/* Fer la sacsejada més subtil */
.shake-animation {
	animation: subtleShake 0.4s ease-in-out;
}

@keyframes subtleShake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-3px); }
	75% { transform: translateX(3px); }
}


/* Responsive per a diferents dispositius */
@media (max-width: 576px) {
	.titol-login {
		font-size: 2.5rem;
	}
}

@media (min-width: 577px) and (max-width: 768px) {
	.titol-login {
		font-size: 3.8rem;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.titol-login {
		font-size: 4.5rem;
	}
}

@media (min-width: 1025px) {
	.titol-login {
		font-size: 4.5rem;
	}
}

@font-face {
    font-family: 'Inter';
    src: url('/area_reservada/fonts/inter/Inter_28pt-SemiBold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body, * {
    font-family: 'Inter', sans-serif !important;
    margin: 0;
    padding: 0;
    border: none;
}
