@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/lato-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/lato-400-latinext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/lato-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/lato-700-latinext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

body {
	font-family: Lato, Helvetica, sans-serif;
	min-height: 100vh;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.login-wrapper {
	position: relative;
	margin: 20px auto;
	width: 50%;
	min-height: 470px;
	height: auto;
	max-width: 720px;
	display: flex;
}

/* The login card grows with its content but never taller than the viewport;
 * once the cap is reached the error box scrolls instead of overflowing. MFA
 * cards keep growing so their long content scrolls the page as before. */
.login-wrapper:not(.mfa_wrapper) {
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
}

.shadow {
   position: absolute;
   top: 0;
   right: 0;
   bottom: 0;
   left: 0;
   background: #fff;
   border-radius: 15px;
	box-shadow: 0px 1px 10px rgba(0,0,0,0.2), -5px 2px 5px rgba(0,0,0,0.2), 5px 8px 5px rgba(0,0,0,0.2);
}

.login_panel {
   display: flex;
   flex-direction: column;
   flex: 0 0 40%;
   width: 40%;
   min-height: 0;
   margin-bottom: 10px;
   overflow: hidden;
}

.login_bg_logo {
    flex: 1 1 auto;
    width: auto;
    height: auto;
    background-image: url('../SSO Image CMG.png');
    min-height: 300px;
    border-radius: 0px 8px 8px 0px;
    background-size: cover;
    background-position: center;
}

.sso_bg {
	width: 100%;
	height: 100%;
}

.signin_label {
    font-weight: bold;
	/* margin-top: 40px; */
	text-align: center;
	font-family: Lato, Helvetica, sans-serif;
	font-size: 1.5em;
	flex: 0 0 auto;
}

.input_container {
    margin-top: 30px;
	text-align: center;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

/* The form shrinks before the rest of the panel when the card hits its
 * viewport cap, so a long error description scrolls instead of overflowing. */
.login_panel form {
	display: flex;
	flex-direction: column;
	flex: 0 1 auto;
	min-height: 0;
}

.login_panel form > input.rounded {
	align-self: center;
	flex: 0 0 auto;
}

.login_panel form > div:not(.error-box) {
	flex: 0 0 auto;
}

input.rounded {
  border: 1px solid #ccc;
  -moz-box-shadow: 0px 1px 0px #ccc;
  -webkit-box-shadow: 0px 1px 0px #ccc;
  box-shadow: 0px 1px 0px #ccc;
  font-size: 16px;
  padding: 4px 7px;
  outline: 0;
  -webkit-appearance: none;
  border-top: none;
  border-bottom: 1px solid #000;
  border-left: none;
  border-right: none;
  color: #000;
}

input.rounded:focus {
  border-color: #ec125f;
}

input#username {
	background-image: url('../SSO Password@2x.png');
	background-repeat: no-repeat;
	background-position: right;
	background-size: auto 50%;
}

input#password {
	background-image: url('../SSO Username@2x.png');
	background-repeat: no-repeat;
	background-position: right;
	background-size: auto 50%;
}

.login_button {
   border-radius: 30px;
   right: 0px;
   background-color: #ec125f;
   border: none;
   padding: 7px 40px;
   text-decoration: none;
   display: inline-block;
   margin: 4px 2px;
   cursor: pointer;
   top: -12px;
   margin-top: 50px;
   font-family: Lato, Helvetica, sans-serif;
   font-weight: 600;
   font-size: 15px;
   color: white;
   width: 180px;
}

.login_button a {
   text-decoration: none;
   font-family: Lato, Helvetica, sans-serif;
   font-weight: 600;
   font-size: 15px;
   color: #fff;
}

.login_dialog {
   position: relative;
   flex: 1 1 auto;
   min-width: 0;
   min-height: 0;
   display: flex;
   align-items: stretch;
   background: transparent;
	border-radius: 8px;
}

.logo_cmg {
   font-weight: bold;
	width: 79px;
	height: 40px;
    margin: 40px auto;
	flex: 0 0 auto;
}

.logo_cmg img {
	width: 100%;
	height: 100%;
}

.signin_notice {
	margin: -30px 16px 30px;
	padding: 8px 12px;
	border-left: 4px solid #8a0f2b;
	border-radius: 4px;
	background: #f7eef0;
	font-size: 12px;
	line-height: 1.45;
	color: #333;
	text-align: left;
	flex: 0 0 auto;
}

input {
	font-family: Lato, Helvetica, sans-serif;
}

.pwd-trap {
	display: none;
}

input#password {
	margin-top: 20px;
}

.error-box {
	flex: 0 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 4px;
	color: red;
}

.mfa_enroll_link {
	flex: 0 0 auto;
}

.error-title {
	text-align: center;
}

.error_descr {
	font-size: 12px;
}

@media (max-width: 44em) {
	.login-wrapper {
		width: 85%;
	}

	.login_bg_logo {
		display: none;
	}

	.login_panel {
		flex: 0 0 100%;
		width: 100%;
	}

	input.rounded {
		width: 70%;
	}

	.login_button {
		width: 40%;
		padding: 7px;
	}

	.error_descr {
		display: none;
	}
}

@media (min-width: 44em) and (max-width: 70em) {
	.login-wrapper {
		width: 90%;
	}

	input.rounded {
		width: 70%;
	}

	.login_button {
		width: 70%;
		max-width: 180px;
	}

	.error_descr {
		display: inline;
	}
}
