/* --- 1. Corpo da Página e Fundo --- */
html, body {
	height: 100%;
	margin: 0;
	font-family: 'Inter', sans-serif;
}

/* Classe aplicada ao h:body */
.modern-login-body {
	/* Fundo branco, similar ao Freya Light */
	background-color: #ffffff;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	color: #495057;
	-webkit-font-smoothing: antialiased;
  	-moz-osx-font-smoothing: grayscale;
}

/* --- 2. Container Central --- */
.login-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-grow: 1;
	padding: 20px;
    position: relative; /* Necessário para posicionamento absoluto do footer se desejado */
    width: 100%;
    box-sizing: border-box;
}

/* --- 3. Card de Login --- */
.login-card {
	background: transparent;
	box-shadow: none;
	padding: 0;
	width: 100%;
	max-width: 360px;
	text-align: center;
	box-sizing: border-box;
    /* Centraliza verticalmente o card na tela, descontando o footer */
    margin-bottom: auto;
    margin-top: auto;
}

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

/* --- 4. Formulário Modernizado --- */

/* Campos de Input */
body .ui-inputfield {
	width: 100%;
	padding: 15px;
	border-radius: 4px;
	border: 1px solid #ced4da;
	box-sizing: border-box;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
    background-color: #f8f9fa; /* Fundo levemente cinza para destacar no fundo branco */
    color: #495057;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    margin-bottom: 0;
}

body .ui-inputfield.ui-state-focus,
body .ui-inputfield:focus {
	border-color: #00808C;
    background-color: #ffffff;
	box-shadow: 0 0 0 0.2rem rgba(0, 128, 140, 0.25);
	outline: none;
}

/* Botão de Entrar */
body .ui-button {
	width: 100%;
	padding: 12px 0;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 4px;
	border: none;
	background: #00808C;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s;
	box-shadow: none;
}

body .ui-button:hover,
body .ui-button.ui-state-hover {
	background: #006a74;
	transform: none;
	box-shadow: none;
}

/* Links (Esqueci senha e Cadastro) */
.login-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.forgot-password-link {
	display: block;
	color: #6c757d;
	text-decoration: none;
	margin-bottom: 15px;
}

.forgot-password-link:hover {
	color: #00808C;
}

.signup-text {
    color: #6c757d;
    margin: 10px 0 0 0;
}

.signup-link {
    color: #00808C;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
}

.signup-link:hover {
    text-decoration: underline;
}

/* Mensagem de Erro */
.login-error {
	color: #dc3545;
	margin-top: 15px;
	display: block;
	text-align: center;
	font-weight: 500;
}

/* --- 5. Rodapé Minimalista --- */
.login-footer-minimal {
    width: 100%;
    text-align: center;
    color: #adb5bd;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px; /* Espaço inferior */
    margin-top: 40px; /* Garante separação do card em telas pequenas */
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #00808C;
}

.footer-links span {
    color: #dee2e6;
}

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

.footer-social a {
    color: #adb5bd;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
    color: #00808C;
    transform: translateY(-2px);
}

.support-phone {
    margin: 0;
    font-weight: 500;
    color: #adb5bd; /* Bem discreto */
    text-decoration: none;
    transition: color 0.2s;
}

.support-phone:hover {
    color: #00808C; /* Destaque ao passar o mouse */
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 600px) {
	.login-wrapper {
		padding: 15px;
        display: block; /* Em mobile, fluxo normal */
	}
	
	.login-card {
		max-width: 100%;
        margin-top: 40px; /* Espaço superior em mobile */
        margin-bottom: 60px;
	}

    .login-footer-minimal {
        margin-top: auto;
    }
}