/* ─── Header com ícones de redes sociais ─── */

.login-header {
	position: fixed;
	top: 0;
	right: 0;
	padding: 20px 40px;
	z-index: 100;
}

.social-icons {
	display: flex;
	gap: 15px;
}

.social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s;
}

.social-icons a img {
	width: 20px;
	height: 20px;
	filter: brightness(0) invert(1);
	opacity: 0.7;
}

.social-icons a:hover img {
	opacity: 1;
}


/* ─── Fundo e estrutura da página ─── */

body.login {
	background: linear-gradient(129deg, rgba(22, 35, 45, 1) 0%, rgba(33, 51, 61, 1) 50%, rgba(56, 136, 195, 1) 100%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Open Sans", sans-serif;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.login-container {
	width: 100%;
	padding: 20px;
	position: relative;
	z-index: 10;
}


/* ─── Card do formulário de login ─── */

.login-card {
	background: transparent !important;
	border: none;
	box-shadow: none;
	padding: 40px 20px;
	max-width: 420px !important;
	margin: 0 auto;
}

.login-logo {
	text-align: center;
	margin-bottom: 30px;
}

.login-logo img {
	max-width: 200px;
	height: auto;
}

.login-title {
	color: #fff;
	font-weight: 400;
	font-size: 16px;
	text-align: center;
	margin-bottom: 30px;
}


/* ─── Campos de texto ─── */

.login-input {
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 4px !important;
	color: #fff !important;
	padding: 14px 16px !important;
	height: 50px !important;
	font-size: 14px !important;
	transition: all 0.3s ease;
}

.login-input::placeholder {
	color: rgba(255, 255, 255, 0.5) !important;
}

.login-input:focus {
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: rgba(91, 156, 196, 0.8) !important;
	outline: none !important;
	box-shadow: none !important;
}

/* Campo de senha com botão de mostrar/ocultar */
.input-group {
	display: flex;
}

.input-group .login-input {
	border-right: none !important;
	border-radius: 4px 0 0 4px !important;
	flex: 1;
}

.input-group-addon {
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	border-left: none !important;
	border-radius: 0 4px 4px 0 !important;
	padding: 14px 16px;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.6);
	width: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s;
}

.input-group-addon:hover {
	color: #fff;
}


/* ─── Checkbox "lembrar-me" e links ─── */

.remember-label {
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
	cursor: pointer;
	display: flex;
	align-items: center;
	font-weight: normal;
	margin: 0;
}

.remember-label input[type="checkbox"] {
	margin-right: 8px;
}

.forgot-link,
.create-account-link {
	color: rgba(91, 156, 196, 0.9) !important;
	font-size: 13px;
	text-decoration: none !important;
	transition: color 0.3s;
}

.forgot-link:hover,
.create-account-link:hover {
	color: #5b9cc4 !important;
}

.create-account-link {
	display: inline-block;
	margin-top: 10px;
}


/* ─── Botões ─── */

.btn-login {
	background: #5b9cc4 !important;
	border: none !important;
	border-radius: 4px !important;
	color: #fff !important;
	padding: 14px 20px !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	height: auto !important;
	text-transform: none !important;
	transition: all 0.3s;
}

.btn-login:hover {
	background: #4a8bb3 !important;
	box-shadow: 0 4px 12px rgba(91, 156, 196, 0.3) !important;
}

.btn-login:active,
.btn-login:focus {
	background: #4a8bb3 !important;
	outline: none !important;
}

.btn-back {
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 4px !important;
	color: #fff !important;
	padding: 14px 20px !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	transition: all 0.3s;
}

.btn-back:hover {
	background: rgba(255, 255, 255, 0.05) !important;
	border-color: rgba(255, 255, 255, 0.5) !important;
}


/* ─── Alertas de erro e sucesso ─── */

.alert {
	border-radius: 4px;
	margin-bottom: 20px;
}

.alert-danger {
	background: rgba(220, 53, 69, 0.9) !important;
	border: 1px solid rgba(220, 53, 69, 0.5) !important;
	color: #fff !important;
}

.alert-success {
	background: rgba(40, 167, 69, 0.9) !important;
	border: 1px solid rgba(40, 167, 69, 0.5) !important;
	color: #fff !important;
}

.display-none {
	display: none !important;
}


/* ─── Footer com listras decorativas ─── */

.login-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px 40px;
	z-index: 100;
}

/* Listra azul */
.login-footer::before {
	content: "";
	position: absolute;
	width: 150px;
	height: 550px;
	background: #4681bc;
	transform: rotate(-35deg);
	top: -150px;
	left: -100px;
	z-index: -1;
}

/* Listra branca */
.login-footer::after {
	content: "";
	position: absolute;
	width: 150px;
	height: 750px;
	background: #fff;
	transform: rotate(-35deg);
	top: -380px;
	left: 20px;
	z-index: -1;
}

/* Layout interno em 3 colunas.
   Os !important sobrescrevem width/float/padding definidos pelo Bootstrap. */
.login-footer .row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-left: 200px;
	gap: 16px;
}

.login-footer .col-xs-4 {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: 1 !important;
	width: auto !important;
	float: none !important;
	padding: 0 !important;
	min-width: 0;
}

.copyright-text {
	color: rgba(255, 255, 255, 0.7);
	font-size: 10px;
	margin-left: 20px;
}

/* Ícones de loja e tecnologias */
.store-icon,
.tech-icon {
	max-width: 95px;
	height: 50px;
	margin: 0 8px;
	opacity: 0.7;
	transition: opacity 0.3s;
}

.store-icon:hover,
.tech-icon:hover {
	opacity: 1;
}


/* ─── Formulário de recuperação de senha ─── */

.forget-form p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
}


/* ─── Utilitários de espaçamento ─── */

.mb-4 { margin-bottom: 20px !important; }
.mb-5 { margin-bottom: 25px !important; }
.row.mb-4 { display: flex; align-items: center; margin-bottom: 25px !important; }
.form-group { width: 100%; }


/* ─── Correções de conflito com o template Bootstrap/Metronic ─── */

.login-card .form-control { box-shadow: none !important; }
.login-card .btn { text-shadow: none !important; }

/* Centraliza o card sobrescrevendo o float do Bootstrap */
.col-sm-6.mx-auto,
.col-md-6.mx-auto,
.col-lg-4.mx-auto,
.col-xl-3.mx-auto {
	float: none;
	margin-left: auto !important;
	margin-right: auto !important;
}


/* ─── Responsivo ─── */

/* Em telas menores que 1024px o footer sai do fixed e passa a fazer parte
   do fluxo da página, evitando que sobreponha o formulário de login */
@media (max-width: 1024px) {
	body.login {
		overflow-x: hidden;
		overflow-y: auto;
		align-items: flex-start;
	}

	/* O container vira coluna para empurrar o footer para o fim da tela */
	.login-container {
		display: flex;
		flex-direction: column;
		min-height: 100vh;
		padding-top: 60px;
		padding-bottom: 0;
	}

	/* A área do formulário cresce para ocupar o espaço disponível */
	.login-container > .row {
		flex: 1;
		display: flex;
		align-items: center;
	}

	/* Footer no fluxo normal, abaixo do formulário */
	.login-footer {
		position: relative;
		bottom: auto;
		left: auto;
		right: auto;
		padding: 16px 20px;
	}

	/* Colunas empilhadas verticalmente */
	.login-footer .row {
		flex-direction: column;
		padding-left: 0;
		gap: 6px;
	}

	.login-footer .col-xs-4 {
		justify-content: center !important;
	}

	.copyright-text {
		margin-left: 0;
	}

	/* Listras ocultadas pois não fazem sentido no layout em coluna */
	.login-footer::before,
	.login-footer::after {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.login-card {
		padding: 30px 15px;
		max-width: 100%;
	}

	.login-logo img {
		max-width: 150px;
	}
}
