/* --- Base Styles --- */
* { box-sizing: border-box; }
body {
	font-family: 'Open Sans', sans-serif;
	font-size: 12px;
	background-color: #f4f4f4; 
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	color: #333;
}

.main-wrapper {
	background-color: #fff;
	width: 95%;
	max-width: 600px;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border-top: 5px solid #00356A;
	position: relative;
}

/* --- Language Selector --- */
.language-selector {
	position: absolute;
	top: 15px;
	right: 15px;
	display: flex;
	z-index: 10;
}
.lang-button {
	width: 35px; height: 35px;
	display: flex; justify-content: center; align-items: center;
	font-weight: 600; font-size: 12px;
	color: #666; cursor: pointer;
	border: 1px solid #ddd; background-color: #fff;
	transition: all 0.2s;
	text-decoration: none;
}
.lang-button:first-child { border-right: none; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.lang-button:last-child { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.lang-button.active-lang { background-color: #00356A; color: white; border-color: #00356A; }

.hidden { display: none !important; }

.header { padding: 20px 20px 10px 20px; text-align: center; border-bottom: 1px solid #ddd; }
.header img { max-width: 280px; margin-bottom: 15px; }
.header h1 { font-size: 1.4rem; color: #00356A; margin: 0; }

/* --- Form Styling --- */
.form-area { padding: 30px; }
.form-gray-container { background-color: #EBEBEB; padding: 25px; border-radius: 4px; }

.form-gray-container label {
	display: block;
	font-weight: bold;
	margin-bottom: 8px;
	color: #00356A;
}

.form-gray-container input[type="text"],
.form-gray-container input[type="password"] {
	width: 100%;
	padding: 12px;
	margin-bottom: 20px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.form-gray-container input[type="submit"] {
	width: 100%;
	padding: 15px;
	border: none;
	border-radius: 4px;
	background-color: #00356A;
	color: white;
	font-weight: 600;
	cursor: pointer;
	text-transform: uppercase;
}

.footer {
	text-align: center;
	padding: 15px;
	font-size: 11px;
	color: #888;
	background-color: #f9f9f9;
	border-top: 1px solid #eee;
}
.footer a { color: #00356A; font-weight: bold; text-decoration: none; }

/* Style all input fields */
input, select {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	margin-top: 6px;
	margin-bottom: 16px;
	font-family: 'Open Sans', sans-serif;
	font-size: 12px;
}

/* FIX: Prevent checkbox from becoming 100% width */
input[type="checkbox"] {
	width: auto;
	padding: 0;
	margin-top: 0;
	margin-bottom: 0;
	display: inline-block;
}

/* FIX: Make only the aceito label inline */
label[for="aceito"] {
	display: inline;
	vertical-align: middle;
	margin-right: 6px;
}

/* Keep checkbox aligned nicely */
#aceito {
    height: 12px;
    width: 12px;
    vertical-align: middle;
    margin-left: 1px;
}

/* Style the submit button */
button {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	margin-top: 6px;
	margin-bottom: 16px;
	background-color: #00356A;
	color: white;
	font-family: 'Open Sans', sans-serif; 
	font-size: 12px;
}

.button-style {
	display: inline-block;
	width: 300px;
	padding: 12px;
	box-sizing: border-box; 
	margin-top: 6px;
	margin-bottom: 16px;
	margin-left: auto;
	margin-right: auto;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #00356A;
	color: white;
	text-decoration: none;
	text-align: center;
	font-family: 'Open Sans', sans-serif;
	font-size: 12px;
}

.container {
	background-color: #EBEBEB;
	padding: 20px;
}

#message, #message2 {
	background: #EBEBEB;
	color: #000;
	position: relative;
	padding: 20px;
	padding-bottom: 10px;
	margin-top: 10px;
}

#message p, #message2 p {
	padding: 0px 4px;
}

.valid { color: green; }
.valid:before {
	position: relative;
	left: -5px;
	content: "✔";
}

.invalid { color: red; }
.invalid:before {
	position: relative;
	left: -5px;
	content: "✖";
}

.hide { display:none; }

.password-container{
	position: relative;
}

.password-container input[type="password"],
.password-container input[type="text"]{
	width: 100%;
	padding: 12px 36px 12px 12px;
	box-sizing: border-box;
}

.fa-eye{
	position: absolute;
	top: 45%;
	right: 1%;
	cursor: pointer;
	color: lightgray;
}

.formr-error {
	text-align: center;
}