/* Página de login da plataforma, a partir da referência enviada pelo mentor.
 *
 * Medições da referência (imagem 2732x1536, 2x -> valores lógicos):
 *   página branca pura; painel de ~447px centrado, começando ~80px do topo,
 *   borda fina clara (#E0E0E0), SEM sombra
 *   logo pequeno alinhado à esquerda no topo do painel
 *   título grande quase preto (#0A0B0E, ~26px)
 *   campos SEM caixa: só uma linha embaixo (#E0E0E0 / #DDDDDD)
 *   link azul "Forgot password?"; botão azul de largura total (~68px de altura) com texto branco
 *   link secundário centrado abaixo do botão; "Termos · Privacidade" no canto inferior direito
 *
 * Cores: uso os tokens do DESIGN.md do site (acento #1E40AF), não o azul da referência.
 *
 * IMPORTANTE: `web_include_css` carrega em TODAS as páginas web do site, inclusive o
 * LMS. Por isso tudo é escopado em `.for-login` (a seção da página de login) e o fundo
 * usa `:has()`.
 */

body:has(.for-login) {
	background: #ffffff !important;
}

/* ---- painel ---- */
.for-login .login-content.page-card {
	max-width: 460px !important;
	margin: 80px auto 40px !important;
	padding: 34px 40px 36px !important;
	background: #ffffff !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 12px !important;
	box-shadow: none !important;
}

/* ---- cabeçalho: logo à esquerda, sem repetir o nome como texto ---- */
.for-login .page-card-head {
	align-items: flex-start !important;
	gap: 22px !important;
}

.for-login .page-card-head img.app-logo {
	width: 266px !important;
	height: auto !important;
	max-width: 100% !important;
}

/* O título "Entrar" sai: o logo já identifica a marca e o subtítulo diz o que fazer. */
.for-login .page-card-head-text h4 {
	display: none !important;
}

.for-login .page-card-subtitle {
	margin: 6px 0 0 !important;
	font-size: 14px !important;
	color: #475569 !important;
}

/* ---- campos: rótulo pequeno e input sublinhado, sem caixa ---- */
.for-login .form-group {
	margin-bottom: 22px !important;
}

.for-login .form-group label {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #0f172a !important;
}

.for-login .form-control {
	height: auto !important;
	padding: 10px 0 !important;
	font-size: 15px !important;
	color: #0f172a !important;
	background: #ffffff !important;
	border: 0 !important;
	border-bottom: 1px solid #e0e0e0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.for-login .form-control:focus {
	border-bottom-color: #1e40af !important;
	box-shadow: none !important;
	outline: none !important;
}

/* ---- links ---- */
.for-login a[href="#forgot"],
.for-login a[href="#login"],
.for-login a[href="#login-with-email-link"] {
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #1e40af !important;
	text-decoration: none !important;
}

.for-login a[href="#forgot"]:hover,
.for-login a[href="#login"]:hover {
	text-decoration: underline !important;
}

/* ---- botões: submit sólido; link vira botão secundário ---- */
.for-login .page-card-actions button.es-button,
.for-login .page-card-actions button.btn-forgot,
.for-login .page-card-actions button.btn-login-with-email-link {
	width: 100% !important;
	height: 56px !important;
	font-family: Jost, "Segoe UI", Helvetica, Arial, sans-serif !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	background: #1e40af !important;
	border: 1px solid #1e40af !important;
	border-radius: 10px !important;
}

.for-login .page-card-actions button.es-button:hover {
	background: #1d4ed8 !important;
	border-color: #1d4ed8 !important;
}

.for-login .page-card-actions a.es-button {
	display: block !important;
	width: 100% !important;
	height: 56px !important;
	line-height: 54px !important;
	text-align: center !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: #0f172a !important;
	background: #ffffff !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 10px !important;
}

.for-login .page-card-actions a.es-button:hover {
	border-color: #1e40af !important;
	color: #1e40af !important;
}

/* ---- links injetados por hp-login.js ---- */
.hp-login-voltar {
	display: block;
	margin-top: 20px;
	text-align: center;
	font-size: 14px;
}

.hp-login-voltar a {
	color: #1e40af !important;
	text-decoration: none !important;
}

.hp-login-voltar a:hover {
	text-decoration: underline !important;
}

.hp-login-rodape {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 28px;
	font-size: 12px;
	color: #6b7280;
}

.hp-login-rodape a {
	color: #6b7280 !important;
	text-decoration: none !important;
}

.hp-login-rodape a:hover {
	color: #1e40af !important;
}
