/*
 * Login pages (registrations/views/login.php, login_rmu*.php, login_brand.php).
 * Loaded from login_brand.php after the global stylesheets. Bootstrap 3.3.
 */

/* style.css/stylem.css set a light-blue html/body background and a leftover
   carousel demo rule fixes html, body at height: 300px */
html,
body {
	height: auto;
	background: #f3f5fa;
	color: #1f2937;
}
/* Navy band behind the top of the page (the white brand bar covers its top
   edge): dot pattern, soft light sheen, gentle curve into the page colour. */
body {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 1440 60'%3E%3Cpath d='M0 60V28C240 4 480 0 720 14s480 40 720 22v24z' fill='%23f3f5fa'/%3E%3C/svg%3E") 0 330px / 100% 60px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='d' width='26' height='26' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%23fff' fill-opacity='.09'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23d)'/%3E%3C/svg%3E") 0 0 / 100% 390px no-repeat,
		radial-gradient(ellipse 60% 120% at 85% 0%, rgba(255, 255, 255, .16), transparent 60%) 0 0 / 100% 390px no-repeat,
		linear-gradient(135deg, #16245e 0%, #1d2f7a 45%, #2c4fb3 100%) 0 0 / 100% 390px no-repeat,
		#f3f5fa;
}

/* ---- Brand bar ------------------------------------------------------------ */
.ereg-brand {
	background: #fff;
	border-bottom: 1px solid #e3e7f0;
	box-shadow: 0 1px 3px rgba(16, 24, 64, .05);
}
.ereg-brand__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
}
.ereg-brand__logo {
	height: 64px;
	width: auto;
}
.ereg-brand__title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1d2f7a;
}
.ereg-brand__link {
	margin-left: auto;
	padding: 7px 14px;
	border: 1px solid #1d2f7a;
	border-radius: 6px;
	color: #1d2f7a;
	white-space: nowrap;
}
.ereg-brand__link:hover,
.ereg-brand__link:focus {
	background: #1d2f7a;
	color: #fff;
	text-decoration: none;
}

/* ---- Page ----------------------------------------------------------------- */
.ereg-auth {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 16px 48px;
}
.ereg-auth--narrow {
	max-width: 460px;
}
.ereg-page-head {
	text-align: center;
	margin-bottom: 24px;
}
.ereg-page-title {
	text-align: center !important;	/* stylem.css: h2 { text-align: left !important } */
	margin: 0 0 12px;
	font-size: 28px;
	font-weight: 600;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.ereg-browser-note {
	display: inline-block;
	margin: 0;
	padding: 9px 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #7a4b00;
	background: #fff7e6;
	border: 1px solid #f3d28c;
	border-radius: 6px;
}
.ereg-browser-note a,
.ereg-browser-note a:hover {
	color: inherit;
}
.ereg-browser-note--quiet {
	display: block;
	padding: 0;
	font-size: 13px;
	text-align: center;
	color: #6b7280;
	background: none;
	border: 0;
}
/* Filled in by the page scripts (and server-side on login_rmu_error/session) */
#msg-container {
	margin: 0 0 18px;
	padding: 11px 14px;
	font-size: 14px;
	color: #8e1b1b;
	background: #fdecec;
	border-left: 4px solid #c62828;
	border-radius: 6px;
}
#msg-container:empty {
	display: none;
}

/* ---- Cards ---------------------------------------------------------------- */
.ereg-card {
	margin-bottom: 24px;
	background: #fff;
	border: 1px solid #e3e7f0;
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba(16, 24, 64, .10);
	overflow: hidden;
}
.ereg-card .subheaderRow {
	min-height: 0;
	padding: 15px 20px 13px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	color: #1d2f7a;
	background: #fff;
	border-top: 4px solid #1d2f7a;
	border-bottom: 1px solid #e8ecf4;
}
/* Sign-in cards carry a gold accent */
.ereg-account,
.ereg-auth--narrow .ereg-card {
	border-top: 4px solid #f2b33d;
}
.ereg-auth--narrow .ereg-card .subheaderRow {
	border-top: 0;
	text-align: center;
	font-size: 17px;
}
.ereg-card__body {
	padding: 20px;
}

/* ---- Forms (labels above fields) ------------------------------------------- */
.ereg-card .form-group {
	margin-bottom: 16px;
	padding: 0;	/* stylem.css: .form-group { padding-top: 5px } */
}
.ereg-card .control-label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
	font-size: 14px;
	color: #374151;
}
.ereg-card .form-control {
	height: 42px;
	font-size: 15px;
	border-color: #cfd6e4;
	border-radius: 6px;
	box-shadow: none;
}
.ereg-card .form-control:focus {
	border-color: #1d2f7a;
	box-shadow: 0 0 0 3px rgba(29, 47, 122, .15);
}
.ereg-btn {
	display: block;
	width: 100%;
	height: 44px;
	margin-top: 4px;
	padding: 0 16px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #1d2f7a;
	border: 0;
	border-radius: 6px;
	transition: background-color .15s ease;
}
.ereg-btn:hover,
.ereg-btn:focus {
	background: #16245e;
	outline: none;
}
.ereg-btn:focus-visible {
	box-shadow: 0 0 0 3px rgba(29, 47, 122, .35);
}
.ereg-btn[disabled] {
	opacity: .6;
	cursor: not-allowed;
}
/* jquery.validate error text (class set by the page scripts) */
.ereg-card .help-inline {
	display: block;
	margin-top: 5px;
	font-size: 13px;
}
.ereg-mandatory {
	margin: 0;
	font-size: 13px;
	color: #4b5563;
}

/* ---- Account card: tabs and panes (trader login) ---------------------------- */
@media (min-width: 992px) {
	/* columns stretch to the row height so the account card can stay in view */
	.ereg-auth > .row {
		display: flex;
	}
	.ereg-auth > .row::before,
	.ereg-auth > .row::after {
		display: none;
	}
	.ereg-account {
		position: sticky;
		top: 16px;
	}
}
.ereg-tabs {
	display: flex;
	background: #f6f8fc;
	border-bottom: 1px solid #e3e7f0;
}
.ereg-tab {
	flex: 1 1 0;
	padding: 15px 10px 12px;
	font-size: 15px;
	font-weight: 600;
	color: #6b7280;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
}
.ereg-tab:hover,
.ereg-tab:focus {
	color: #1d2f7a;
	outline: none;
}
.ereg-tab.is-active {
	color: #1d2f7a;
	background: #fff;
	border-bottom-color: #1d2f7a;
}
.ereg-pane {
	display: none;
}
.ereg-pane.is-active {
	display: block;
}
.ereg-pane__lead {
	margin: 0 0 16px;
	font-size: 14px;
	color: #4b5563;
}
.ereg-pane__switch {
	margin: 14px 0 0;
	text-align: center;
}
.ereg-link {
	padding: 0;
	font-size: 14px;
	color: #1d2f7a;
	background: none;
	border: 0;
	text-decoration: underline;
}
.ereg-link:hover,
.ereg-link:focus {
	color: #16245e;
}

/* ---- Information cards (trader login) -------------------------------------- */
.ereg-notices {
	font-size: 14px;
	line-height: 1.6;
}
.ereg-notices ol {
	margin: 0;
	padding-left: 20px;
}
.ereg-notices ol > li {
	margin-bottom: 12px;
}
.ereg-notices ol > li:last-child {
	margin-bottom: 0;
}
.ereg-links {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}
.ereg-links > li {
	margin-bottom: 4px;
}
.ereg-links .fa {
	width: 16px;
	color: #1d2f7a;
}
.ereg-contact {
	margin: 8px 0 0;
	padding: 10px 14px;
	background: #f6f8fc;
	border-radius: 6px;
}
.ereg-contact__phone {
	font-weight: 600;
	color: #b42318;
}
.ereg-contact__email {
	display: inline-block;
	margin-left: 16px;
	font-style: italic;
}
.ereg-hours {
	margin: 8px 0 0;
	font-size: 13px;
	color: #4b5563;
}
.ereg-video {
	margin-bottom: 8px;
}
.ereg-video__title {
	margin: 0 0 8px;
	font-weight: 600;
	font-size: 14px;
	color: #374151;
}
.ereg-video .embed-responsive {
	border-radius: 8px;
}

/* ---- Small screens -------------------------------------------------------- */
@media (max-width: 991px) {
	.ereg-video {
		margin-bottom: 20px;
	}
}
@media (max-width: 600px) {
	.ereg-brand__logo {
		height: 48px;
	}
	.ereg-brand__title {
		order: 3;
		flex-basis: 100%;
		font-size: 15px;
	}
	.ereg-brand__link {
		padding: 5px 10px;
		font-size: 13px;
	}
	.ereg-auth {
		padding-top: 20px;
	}
	.ereg-page-title {
		font-size: 22px;
	}
	.ereg-card__body {
		padding: 16px;
	}
	.ereg-contact__email {
		display: block;
		margin-left: 0;
	}
}
