/* ==========================================================================
   appsc-auth.css
   Candidate login, forgot password, new password and new-user pop-ups.
   Used by web/post-details.php (homepage) and web/registration_login.php
   (Index/otr_login). Markup contract: .auth-modal on the .modal, .auth-head
   on the header, .form-group.auth-field around every validated input.
   ========================================================================== */

/* ---- Candidate login, forgot password and new password pop-ups ------
   Field ids, names, form ids and button ids are unchanged: the
   bootstrapValidator setups and AJAX handlers below depend on them.
   Every field stays inside a .form-group so validation messages are
   placed under it. */
.auth-modal .modal-dialog {
	width: auto;
	max-width: 460px;
	margin: 40px auto;
	padding: 0 16px;
}
.auth-modal .modal-content {
	overflow: hidden;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(8, 19, 34, .45);
}
.auth-modal .auth-head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 60px 22px 22px;
	border: 0;
	border-bottom: 3px solid #f7941d;
	background: linear-gradient(120deg, #0b1a2d, #0d1c43 60%, #1b2f66);
	color: #fff;
	text-align: left;
}
.auth-modal .auth-head__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background-color: rgba(246, 205, 97, .16);
	color: #f6cd61;
	font-size: 20px;
}
.auth-modal .auth-title {
	margin: 0;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
}
.auth-modal .auth-sub {
	margin: 3px 0 0;
	color: rgba(255, 255, 255, .72);
	font-size: 13px;
	line-height: 1.45;
	text-align: left;
}
.auth-modal .auth-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	float: none;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 30px;
	text-shadow: none;
	opacity: 1;
}
.auth-modal .auth-close:hover,
.auth-modal .auth-close:focus {
	background-color: rgba(255, 255, 255, .14);
	color: #fff;
	opacity: 1;
}
.auth-modal .modal-body {
	padding: 22px;
	text-align: left;
}

/* Fields */
.auth-modal .auth-field {
	margin: 0 0 14px;
}
.auth-modal .auth-label {
	display: block;
	margin: 0 0 6px;
	color: #1c2436;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
}
.auth-modal .auth-label .req {
	color: #d93025;
}
.auth-modal .auth-input {
	position: relative;
}
.auth-modal .auth-input > .fa:first-child {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 42px;
	height: 44px;
	color: #8a93a6;
	font-size: 16px;
	line-height: 44px;
	text-align: center;
	pointer-events: none;
}
.auth-modal .form-control {
	height: 44px;
	padding: 0 14px 0 42px;
	border: 1px solid #d7dde8;
	border-radius: 10px;
	background-color: #fff;
	color: #1c2436;
	font-size: 15px;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-modal .form-control::placeholder {
	color: #a3abbb;
}
.auth-modal .form-control:focus {
	border-color: #1b2f66;
	box-shadow: 0 0 0 3px rgba(27, 47, 102, .15);
	outline: 0;
}
.auth-modal .auth-input--toggle .form-control {
	padding-right: 46px;
}
.auth-modal .auth-eye {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	width: 44px;
	height: 44px;
	color: #5d6679;
	font-size: 16px;
	line-height: 44px;
	text-align: center;
	cursor: pointer;
}
.auth-modal .auth-eye:hover {
	color: #0d1c43;
}
.auth-modal .has-error .form-control {
	border-color: #d93025;
}
.auth-modal .has-error .form-control:focus {
	box-shadow: 0 0 0 3px rgba(217, 48, 37, .15);
}
.auth-modal .has-success .form-control {
	border-color: #1e7b3a;
}
.auth-modal .has-error .auth-label,
.auth-modal .has-success .auth-label {
	color: #1c2436;
}
.auth-modal .help-block {
	margin: 5px 0 0;
	font-size: 12px;
	color: #d93025;
}

/* "OR" between mobile and email */
.auth-modal .auth-or {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: -2px 0 12px;
	color: #8a93a6;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.auth-modal .auth-or::before,
.auth-modal .auth-or::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background-color: #e2e7f0;
}

/* Captcha: the image and refresh icon are written into the <p> by
   create_captcha / refresh_captcha. */
.auth-modal .auth-captcha {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.auth-modal .auth-captcha > .form-group {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}
.auth-modal .auth-captcha__img {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	margin: 22px 0 0;
	padding: 0 4px 0 0;
	overflow: hidden;
	border: 1px solid #d7dde8;
	border-radius: 10px;
	background-color: #f8fafc;
	float: none !important;
}
.auth-modal .auth-captcha__img img {
	display: block;
	height: 42px;
	width: auto;
	max-width: 150px;
}
.auth-modal .auth-captcha__img a img {
	height: 28px;
	max-width: none;
}
.auth-modal .auth-captcha__img a {
	display: inline-flex;
	flex: 0 0 auto;
}

.auth-modal .auth-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
	margin: 16px 0 18px;
	font-size: 14px;
}
.auth-modal .auth-links a {
	color: #1b2f66;
	font-weight: 600;
	text-decoration: none;
}
.auth-modal .auth-links a:hover,
.auth-modal .auth-links a:focus {
	color: #f7941d;
	text-decoration: underline;
}
.auth-modal .auth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background-color: #f7941d;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	box-shadow: 0 8px 20px rgba(247, 148, 29, .3);
	transition: background-color .15s ease, box-shadow .15s ease;
}
.auth-modal .auth-btn:hover,
.auth-modal .auth-btn:focus {
	background-color: #e4791a;
	color: #fff;
}
.auth-modal .auth-btn[disabled] {
	opacity: .6;
	box-shadow: none;
}
.auth-modal .auth-btn--navy {
	background-color: #0d1c43;
	box-shadow: 0 8px 20px rgba(13, 28, 67, .25);
}
.auth-modal .auth-btn--navy:hover,
.auth-modal .auth-btn--navy:focus {
	background-color: #1b2f66;
}
.auth-modal .auth-btn:focus-visible,
.auth-modal .auth-close:focus-visible,
.auth-modal .auth-links a:focus-visible {
	outline: 2px solid #f6cd61;
	outline-offset: 2px;
}
.auth-modal .auth-note {
	display: flex;
	gap: 10px;
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background-color: #fff5e8;
	color: #7a4a0c;
	font-size: 13px;
	line-height: 1.55;
}
.auth-modal .auth-note span {
	text-align: left !important;
	word-spacing: normal !important;
}
.auth-modal .auth-note .fa {
	margin-top: 2px;
	color: #f7941d;
}

/* OTP step of Forgot Password */
.auth-modal .auth-otp {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px dashed #d7dde8;
}
.auth-modal .auth-otp__row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.auth-modal .auth-otp__row > .form-group {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}
.auth-modal .auth-resend {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	margin-top: 22px;
	padding: 0 12px;
	border: 1px solid #d7dde8;
	border-radius: 10px;
	color: #1b2f66;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.auth-modal .auth-resend:hover,
.auth-modal .auth-resend:focus {
	border-color: #1b2f66;
	background-color: #eef2f8;
	text-decoration: none;
}
.auth-modal .auth-otp .auth-btn {
	margin-top: 14px;
}

/* New-user instructions */
.auth-modal--wide .modal-dialog {
	width: auto !important;
	max-width: 760px;
	margin: 40px auto;
	padding: 0 16px;
}
.auth-modal--wide .modal-content {
	margin-top: 0 !important;
}
.auth-modal--wide .modal-body {
	min-height: 0 !important;
	max-height: 60vh;
	overflow-y: auto;
	color: #1c2436;
	font-size: 14px;
	line-height: 1.6;
}
.auth-modal--wide .modal-body::after {
	content: "";
	display: block;
	clear: both;
}
.auth-modal--wide .body-txt {
	margin: 0;
	padding-left: 20px;
	list-style: decimal;
}
.auth-modal--wide .body-txt li {
	margin-bottom: 8px;
	text-align: left;
}
.auth-modal--wide .modal-footer {
	padding: 14px 22px;
	border-top: 1px solid #e2e7f0;
}
.auth-modal--wide .modal-footer a {
	display: block;
}
.auth-modal--wide #btnProceed {
	max-width: 260px;
	margin: 0 auto;
}

@media (max-width: 575px) {
	.auth-modal .modal-dialog,
	.auth-modal--wide .modal-dialog {
		margin: 12px auto;
		padding: 0 10px;
	}
	.auth-modal .auth-head {
		padding: 18px 56px 18px 16px;
	}
	.auth-modal .auth-head__icon {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}
	.auth-modal .auth-title {
		font-size: 18px;
	}
	.auth-modal .modal-body {
		padding: 18px 16px;
	}
	/* 16px text stops iOS zooming into the field. */
	.auth-modal .form-control {
		font-size: 16px;
	}
	.auth-modal .auth-captcha {
		flex-wrap: wrap;
	}
	.auth-modal .auth-captcha__img {
		margin: 8px 0 0;
	}
	.auth-modal .auth-captcha > .form-group {
		flex-basis: 100%;
	}
	.auth-modal--wide .modal-body {
		max-height: 65vh;
		padding: 16px 14px;
	}
}
