/* =========================================================
   EPS - Login / Senha / Autocadastro
   CSS unificado
   ========================================================= */

:root {
	--eps-primary: #2563eb;
	--eps-bg: #08111f;
	--eps-login-bg-image: none;

	--eps-text: #ffffff;
	--eps-muted: rgba(255,255,255,.76);
	--eps-card: rgba(255,255,255,.96);
	--eps-card-text: #1f2937;
	--eps-border: rgba(255,255,255,.24);
	--eps-input-border: #d1d5db;
	--eps-input-bg: #f9fafb;
	--eps-shadow: 0 24px 80px rgba(0,0,0,.30);
}

html { 
	-webkit-text-size-adjust: none; 
	-ms-text-size-adjust: none;
	-moz-text-size-adjust: none;
	text-size-adjust: none;
	width: 100%;
	min-width: 100%;
	min-height: 100%;
	background: var(--eps-bg);
}

body {
	margin: 0;
	width: 100%;
	min-width: 100%;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	font-family: Inter, Arial, Helvetica, sans-serif;
	background: var(--eps-bg);
	overflow-x: hidden;
}

/* Fundo fixo da tela de login
   Mantido em pseudo-elemento para evitar falhas de background-attachment
   em Safari/iPhone e WebView mobile. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	width: 100vw;
	height: 100vh;
	height: 100svh;
	height: 100dvh;
	background:
		linear-gradient(135deg, rgba(0,0,0,.68), rgba(0,0,0,.26)),
		var(--eps-login-bg-image) center center / cover no-repeat,
		var(--eps-bg);
	pointer-events: none;
	transform: translateZ(0);
}

a {
	-webkit-tap-highlight-color: transparent;
}

/* =========================================================
   Layout base
   ========================================================= */

.eps-login-page {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	box-sizing: border-box;
}

.eps-login-shell {
	width: min(1100px, 100%);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 395px;
	gap: 46px;
	align-items: center;
}

/* Variante para telas/formulários largos, como autocadastro */
.eps-login-shell-wide {
	width: min(1080px, 100%);
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.eps-login-page-wide {
	align-items: flex-start;
	justify-content: center;
	padding: 28px;
}

/* =========================================================
   Bloco institucional lateral
   ========================================================= */

.eps-login-hero {
	color: var(--eps-text);
	padding: 24px;
}

.eps-login-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 13px;
	border: 1px solid var(--eps-border);
	border-radius: 999px;
	background: rgba(255,255,255,.11);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	font-size: 13px;
	font-weight: bold;
	letter-spacing: .3px;
}

.eps-login-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--eps-primary);
	box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}

.eps-login-title {
	margin: 24px 0 14px;
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1.02;
	font-weight: 800;
	letter-spacing: -1.5px;
}

.eps-login-subtitle {
	max-width: 590px;
	margin: 0;
	color: var(--eps-muted);
	font-size: 17px;
	line-height: 1.6;
}

.eps-login-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 28px;
	max-width: 650px;
}

.eps-feature {
	border: 1px solid var(--eps-border);
	background: rgba(255,255,255,.10);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 18px;
	padding: 14px;
	color: rgba(255,255,255,.88);
	font-size: 13px;
	line-height: 1.35;
}

.eps-feature strong {
	display: block;
	color: #ffffff;
	font-size: 14px;
	margin-bottom: 4px;
}

/* Oculta o hero em páginas largas, como autocadastro */
.eps-hide-hero .eps-login-hero {
	display: none;
}

/* =========================================================
   Card
   ========================================================= */

.eps-login-card {
	position: relative;
	background: var(--eps-card);
	color: var(--eps-card-text);
	border-radius: 30px;
	box-shadow: var(--eps-shadow);
	padding: 31px;
	overflow: hidden;
	box-sizing: border-box;
}

.eps-login-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 7px;
	background: var(--eps-primary);
}

.eps-login-card-wide {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 34px;
}

/* Cabeçalho compacto para card largo */
.eps-card-header {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 28px;
	align-items: center;
	margin-bottom: 22px;
	padding-bottom: 22px;
	border-bottom: 1px solid #e5e7eb;
}

.eps-card-title-area {
	min-width: 0;
}

/* =========================================================
   Logo / Títulos
   ========================================================= */

.eps-login-logo {
	text-align: center;
	margin: 10px 0 20px;
}

.eps-login-logo img {
	width: 100%;
	max-width: 300px;
	height: auto;
}

.eps-login-logo-box {
	width: 88px;
	height: 88px;
	margin: 0 auto;
	border-radius: 26px;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 32px rgba(0,0,0,.10);
	border: 1px solid rgba(0,0,0,.06);
	overflow: hidden;
}

.eps-login-logo-box img {
	max-width: 72px;
	max-height: 72px;
	object-fit: contain;
}

.eps-card-header .eps-login-logo {
	text-align: left;
	margin: 0;
}

.eps-card-header .eps-login-logo img {
	max-width: 260px;
	display: block;
}

.eps-login-heading {
	margin: 0;
	text-align: center;
	font-size: 23px;
	font-weight: 800;
	color: #111827;
}

.eps-card-header .eps-login-heading {
	text-align: left;
	font-size: 26px;
	letter-spacing: -0.4px;
}

.eps-login-caption {
	margin: 8px 0 24px;
	text-align: center;
	font-size: 14px;
	color: #6b7280;
	line-height: 1.55;
}

.eps-card-header .eps-login-caption {
	margin: 8px 0 0;
	text-align: left;
	max-width: 680px;
}

/* =========================================================
   Boxes / Seções
   ========================================================= */

.eps-info-box {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	padding: 14px 16px;
	margin: 0 0 22px;
	font-size: 13px;
	line-height: 1.55;
	color: #4b5563;
}

.eps-info-box strong {
	color: #111827;
}

.eps-section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.eps-section-title {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 800;
	color: #111827;
}

/* =========================================================
   Grids
   ========================================================= */

.eps-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
}

.eps-grid-1 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.eps-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 18px;
}

.eps-field {
	min-width: 0;
}

.eps-field-full {
	grid-column: 1 / -1;
}

/* =========================================================
   Campos
   ========================================================= */

.eps-label {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: bold;
	color: #374151;
}

.eps-input-wrap {
	position: relative;
}

.eps-input,
.eps-select {
	width: 100%;
	height: 52px;
	box-sizing: border-box;
	border: 1px solid var(--eps-input-border);
	border-radius: 15px;
	background: var(--eps-input-bg);
	padding: 0 15px;
	font-size: 14px;
	color: #111827;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.eps-input-password {
	padding-right: 48px;
}

.eps-select {
	appearance: auto;
	-webkit-appearance: auto;
}

.eps-input:focus,
.eps-select:focus {
	background: #ffffff;
	border-color: var(--eps-primary);
	box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}

/* =========================================================
   Botão de visualizar senha
   ========================================================= */

.eps-password-toggle {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6b7280;
	font-size: 18px;
	line-height: 1;
}

.eps-password-toggle:hover {
	background: rgba(0,0,0,.05);
}

.icone-olho,
.icone-olho-fechado {
	width: 22px;
	height: 22px;
	display: inline-block;

	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
}

.icone-olho {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.icone-olho-fechado {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.94 10.94 0 0 1 12 19c-6.5 0-10-7-10-7a20.29 20.29 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A10.94 10.94 0 0 1 12 4c6.5 0 10 7 10 7a20.18 20.18 0 0 1-2.16 3.19'/%3E%3Cpath d='M14.12 14.12A3 3 0 0 1 9.88 9.88'/%3E%3Cpath d='M1 1l22 22'/%3E%3C/svg%3E");
}

/* =========================================================
   Botões
   ========================================================= */

.eps-button-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 20px;
}

.eps-button-row-2 {
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 24px;
}

.eps-button {
	width: 100%;
	height: 55px;
	border: 0;
	border-radius: 16px;
	background: var(--eps-primary);
	color: #ffffff;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(0,0,0,.20);
	transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.eps-button:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 16px 34px rgba(0,0,0,.25);
}

.eps-button:active {
	transform: translateY(0);
}

.eps-button-secondary {
	width: 100%;
	height: 55px;
	border: 1px solid #d1d5db;
	border-radius: 16px;
	background: #ffffff;
	color: #374151;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}

.eps-button-secondary:hover {
	background: #f9fafb;
	transform: translateY(-1px);
}

/* =========================================================
   Links
   ========================================================= */

.eps-links {
	display: flex;
	justify-content: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 20px;
	font-size: 12px;
}

.eps-links a {
	color: var(--eps-primary);
	font-weight: bold;
	text-decoration: none;
}

.eps-links a:hover {
	text-decoration: underline;
}

/* =========================================================
   Captcha / Loading / Rodapé
   ========================================================= */

.eps-captcha {
	display: flex;
	justify-content: center;
	margin-top: 22px;
	overflow: hidden;
}

.eps-alerta {
	display: none;
	text-align: center;
	padding: 56px 20px;
	color: #111827;
	font-weight: bold;
}

.eps-spinner {
	width: 36px;
	height: 36px;
	margin: 0 auto 15px;
	border-radius: 50%;
	border: 4px solid #e5e7eb;
	border-top-color: var(--eps-primary);
	animation: epsSpin .8s linear infinite;
}

@keyframes epsSpin {
	to {
		transform: rotate(360deg);
	}
}

.eps-login-footer {
	text-align: center;
	margin-top: 22px;
	font-size: 12px;
	color: #9ca3af;
	line-height: 1.4;
}

/* =========================================================
   Lista de disciplinas
   ========================================================= */

.eps-disc-list {
	margin-top: 14px;
	max-height: 300px;
	overflow: auto;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	background: #f9fafb;
	padding: 10px;
}

.eps-disc-item {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 8px;
	align-items: flex-start;
	padding: 8px;
	border-radius: 12px;
	font-size: 12px;
	color: #4b5563;
	line-height: 1.35;
}

.eps-disc-item:hover {
	background: #ffffff;
}

.eps-disc-item strong {
	color: #374151;
}


.eps-field {
	min-width: 0;
	margin-bottom: 16px;
}
		
.eps-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: bold;
	color: #374151;
	line-height: 1.2;
}
		
#conteudo_login .eps-button {
	margin-top: 6px;
}

/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 900px) {
	.eps-login-page,
	.eps-login-page-wide {
		min-height: 100vh;
		min-height: 100svh;
		min-height: 100dvh;
		padding: 16px;
		align-items: center;
	}

	.eps-login-shell {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.eps-login-hero {
		text-align: center;
		padding: 20px 8px 0;
	}

	.eps-login-subtitle {
		margin-left: auto;
		margin-right: auto;
		font-size: 15px;
	}

	.eps-login-features {
		display: none;
	}

	.eps-login-card {
		width: 100%;
		max-width: 560px;
		margin: 0 auto;
		border-radius: 25px;
		padding: 27px 22px;
	}

	.eps-login-card-wide {
		max-width: 100%;
	}

	.eps-card-header {
		grid-template-columns: 1fr;
		gap: 16px;
		text-align: center;
	}

	.eps-card-header .eps-login-logo {
		text-align: center;
	}

	.eps-card-header .eps-login-logo img {
		margin: 0 auto;
		max-width: 240px;
	}

	.eps-card-header .eps-login-heading,
	.eps-card-header .eps-login-caption {
		text-align: center;
	}

	.eps-grid,
	.eps-grid-3 {
		grid-template-columns: 1fr;
	}

	.eps-button-row-2 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 420px) {
	.eps-login-page,
	.eps-login-page-wide {
		padding: 12px;
	}

	.eps-login-title {
		font-size: 30px;
	}

	.eps-login-card {
		padding: 22px 16px;
	}

	.eps-login-heading {
		font-size: 22px;
	}

	.eps-login-logo-box {
		width: 76px;
		height: 76px;
		border-radius: 22px;
	}

	.eps-login-logo-box img {
		max-width: 62px;
		max-height: 62px;
	}

	.eps-captcha {
		transform: scale(.92);
		transform-origin: center top;
		margin-bottom: -8px;
	}
}
