html {
	font-size: 16px; /* Root base: 1rem = 16px */
}

body {
	font-family: SourceSans3, sans-serif;
	font-size: 0.9375rem; /* 15px */
	color: #222;
	background-color: #f5f7fa;
	margin: 0;
}

A {
	font-size: 0.9375rem;
	color: #003355;
	font-weight: normal;
}

H1, H2, H3, H4, H5, H6 {
	margin: 0.5rem;
}

.lead {
	font-size: 1.75rem;
	font-weight: 400;
}

ol, ul {
	margin-top: 0.625rem;
	margin-bottom: 1.25rem;
	padding-left: 1.25rem;
}

li {
	margin-bottom: 0.2rem;
	padding: 0.125rem;
}

H3 A {
	border: 0.125rem solid #005577;
	padding: 0.3125rem;
}

a {
	color: #2d73b9;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.captcha-container {
	margin-left: 0.9375rem;
}

input {
	font-size: 0.9375rem;
	padding: 0.5rem 0.625rem;
	border: 0.0625rem solid #ccc;
	border-radius: 0.125rem;
	width: 100%;
	box-sizing: border-box;
}

input.code-input {
	width: 15.625rem;
	height: 2.8125rem;
	font-size: 2.5rem;
	letter-spacing: 0.625rem;
	font-family: monospace;
	text-align: center;
	padding-left: 0.625rem;
	border: 0.0625rem solid #ccc;
	border-radius: 0.5rem;
}

input:focus, textarea:focus {
	outline: none;
	border-color: #2d73b9;
	box-shadow: 0 0 0 0.125rem #a0c4ff;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.code-input:focus {
	outline: none;
	border-color: #007bff;
}

.password-strength-container, .strength-bar {
	font-size: 0.75rem;
	box-sizing: border-box;
	width: 100%;
	margin-top: 0.3125rem;
}

.strength-bar {
	width: 100%;
	height: 0.5rem;
	background-color: #eee;
	border-radius: 0.25rem;
	overflow: hidden;
}

.strength-fill {
	height: 100%;
	transition: width 0.3s ease, background-color 0.3s ease;
}

TD {
	font-size: 0.9375rem;
	font-weight: normal;
	color: black;
}

button {
	background-color: #2d73b9;
	color: white;
	border: none;
	border-radius: 0.25rem;
	padding: 0.625rem 1.125rem;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

button:hover {
	background-color: #1e5c9c;
}

button:disabled {
	background-color: #cccccc;
	cursor: not-allowed;
}

.header {
	display: flex;
	align-items: center;
	padding: 0.9375rem 1.5625rem;
	background: white;
	border-bottom: 0.1875rem solid #2d73b9;
}

.header img {
	width: 8.75rem;
}

.header .title div {
	font-size: 1.25rem;
	font-weight: bold;
	color: #003366;
}

.header .title {
	margin-left: 0.9375rem;
	font-size: 0.875rem;
	color: #444;
}

#app {
	background: white;
	border: 0.0625rem solid #dcdcdc;
	border-radius: 0.375rem;
	padding: 0.5rem 1.875rem;
	margin: 0.5rem auto;
	box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.08);
}

hr {
	border: none;
	height: 0.0625rem;
	background: #d0d7de;
	margin: 1.5rem 0;
}

#messages {
	text-align: center;
	color: green;
}

#errors {
	color: #ff0000;
}

#errors li {
	padding: 0.3125rem;
	font-weight: 600;
}

.container {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3125rem;
}

.box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0.3125rem 0.75rem;
	background: #ffffff;
	justify-content: flex-start;
}

.box label {
	color: #595959;
	background-color: #fff;
	margin-bottom: 0.3125rem;
	font-size: 0.8125rem;
}

label.required::after {
	content: " *";
	color: red;
	margin-left: 0.125rem;
	font-weight: bold;
}

.one-column>* {
	margin-top: 0.3125rem;
}

.one-column input {
	max-width: 18.75rem;
}

@media ( min-width : 62rem) {
	#app {
		width: 50rem;
	}
	.box {
		flex: 1 1 calc(50% - 1.875rem);
	}
}

/* Medium screens: 2 columns */
@media ( min-width : 45rem) and (max-width: 61.9375rem) {
	#app {
		width: 95%;
	}
	.box {
		width: 45%;
	}
}

/* Small screens: 1 column */
@media ( max-width : 44.9375rem) {
	#app {
		width: 90%;
	}
	.box {
		flex: 1 1 100%;
	}
	.box label {
		margin-top: 0.625rem;
	}
}

H1 {
	font-size: 1.25rem;
	font-weight: normal;
	color: black;
	background-color: white;
}

h2 {
	font-size: 1.125rem;
	color: #595959;
	font-weight: normal;
	margin-top: 1.125rem;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

h3 {
	font-size: 1rem;
	margin-top: 0.625rem;
}

H4 {
	font-size: 0.9375rem;
	font-weight: bold;
	color: #700000;
	background-color: white;
}

h5 {
	font-size: 0.875rem;
	margin-top: 0.3125rem;
	color: #555;
}

.password-wrapper {
	display: flex;
	align-items: center;
	width: 100%;
}

.password-wrapper input {
	flex: 1; /* take all remaining space */
	outline: none;
}

.password-wrapper .eye-icon {
	cursor: pointer;
	user-select: none;
	font-size: 1.2em; /* adjust size of eye icon */
	margin-left: 8px;
}

input[type="password"]::-moz-password-reveal {
	display: none;
}

input::-ms-reveal {
	display: none;
}