/*
 * MathVision portal: login screens (wp-login.php: Log In, Lost Password, Reset Password).
 * One small stylesheet in place of login.min.css + buttons.min.css + dashicons.min.css (about 68 KB).
 * Loaded by login_header() with ?version=<file time>, so a new upload is picked up straight away.
 * Plain CSS for older iPads (no :is(), :has(), inset).
 */

/* ---------- Page ---------- */
html, body {margin:0; padding:0;}
html {background:#fff7f0;}
body.login {
	min-height:100vh;
	background:#fff7f0;
	background-image:linear-gradient(180deg, #ffe4cc 0%, #fff1e4 38%, #fff9f4 100%);
	background-repeat:no-repeat;
	color:#3d2a1e;
	font:15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-text-size-adjust:100%;
	-webkit-font-smoothing:antialiased;
}
.login *, .login *:before, .login *:after {box-sizing:border-box;}
.login a {color:#c2560c; text-decoration:none;}
.login a:hover, .login a:focus {color:#9e4304; text-decoration:underline;}
.login p {margin:0;}

#login {
	width:100%;
	max-width:392px;
	margin:0 auto;
	padding:7vh 16px 28px;
}

/* ---------- Card ---------- */
.mvl-card {
	background:#fff;
	border-radius:16px;
	overflow:hidden;
	box-shadow:0 1px 2px rgba(140, 70, 10, .06), 0 14px 36px rgba(214, 110, 30, .16);
}
.mvl-head {
	padding:22px 16px 16px;
	text-align:center;
	background:#f7802c;
	background-image:linear-gradient(140deg, #ff9a4d 0%, #f47320 100%);
}
#login_logo {
	display:block;
	width:205px;
	height:114px;
	margin:0 auto;
	background-image:url("../images/login/mv_login_icons.png");
	background-repeat:no-repeat;
	background-position:0 0;
}
.mvl-body {padding:22px 20px 20px;}

/* ---------- Messages ---------- */
.login #login_error, .login .message {
	margin:0 0 14px;
	padding:10px 12px;
	border-radius:8px;
	font-size:13.5px;
	line-height:1.4;
	text-align:left;
}
.login #login_error {background:#fdeceb; color:#8f1d1d; border-left:4px solid #d63638;}
.login .message {background:#fff3e6; color:#7a3d0e; border-left:4px solid #f28a3c;}
.login #login_error a, .login .message a {color:inherit; text-decoration:underline;}

/* ---------- Fields ---------- */
.mvl-sr {
	position:absolute !important;
	width:1px; height:1px;
	margin:-1px; padding:0; border:0;
	overflow:hidden;
	clip:rect(0 0 0 0);
	white-space:nowrap;
}
.mvl-field {position:relative; margin:0 0 12px;}
.mvl-ico {
	position:absolute;
	left:14px; top:50%;
	width:18px; height:18px;
	margin-top:-9px;
	fill:#c9a68a;
	pointer-events:none;
}
.login input.input,
.login input[type=text],
.login input[type=email],
.login input[type=password] {
	display:block;
	width:100%;
	height:48px;
	margin:0;
	padding:0 14px;
	border:1px solid #ead3bf;
	border-radius:10px;
	background:#fffcf9;
	color:#33241a;
	font-family:inherit;
	font-size:16px; /* 16px: iPhone doesn't zoom in on focus */
	line-height:normal;
	box-shadow:none;
	-webkit-appearance:none;
	appearance:none;
	-webkit-transition:border-color .15s, box-shadow .15s;
	transition:border-color .15s, box-shadow .15s;
}
.mvl-field input.input {padding-left:42px;}
.mvl-field-pass input.input {padding-right:48px;}
.login input.input:focus,
.login input[type=text]:focus,
.login input[type=email]:focus,
.login input[type=password]:focus {
	outline:0;
	border-color:#f28a3c;
	background:#fff;
	box-shadow:0 0 0 3px rgba(242, 115, 32, .18);
}
.login input::-webkit-input-placeholder {color:#b59a86;}
.login input::-moz-placeholder {color:#b59a86; opacity:1;}
.login input:-ms-input-placeholder {color:#b59a86;}
.login input::placeholder {color:#b59a86;}

/* Show / hide password (shown only when JavaScript runs) */
.mvl-eye {
	display:none;
	position:absolute;
	right:4px; top:4px;
	width:40px; height:40px;
	padding:0;
	border:0;
	border-radius:8px;
	background:transparent;
	color:#b08d73;
	cursor:pointer;
}
.mvl-js .mvl-eye {display:block;}
.mvl-eye:hover, .mvl-eye:focus {color:#c2560c; background:#fff1e4; outline:0;}
.mvl-eye svg {display:block; width:20px; height:20px; margin:0 auto; fill:currentColor;}
.mvl-eye .mvl-eye-off {display:none;}
.mvl-eye.is-on .mvl-eye-on {display:none;}
.mvl-eye.is-on .mvl-eye-off {display:block;}

/* ---------- Buttons ---------- */
.login .mvl-btn,
.login input.button-primary {
	display:block;
	width:100%;
	height:48px;
	margin:4px 0 0;
	padding:0 16px;
	border:0;
	border-radius:10px;
	background:#ef7019;
	background-image:linear-gradient(180deg, #fa8a35 0%, #ea6a10 100%);
	color:#fff;
	font-family:inherit;
	font-size:16px;
	font-weight:600;
	letter-spacing:.2px;
	text-shadow:0 1px 1px rgba(150, 60, 0, .25);
	box-shadow:0 2px 8px rgba(234, 106, 16, .28);
	cursor:pointer;
	-webkit-appearance:none;
	appearance:none;
}
.login .mvl-btn:hover, .login input.button-primary:hover {background:#e3640c; background-image:linear-gradient(180deg, #f47e26 0%, #dd5f08 100%);}
.login .mvl-btn:focus, .login input.button-primary:focus {outline:0; box-shadow:0 0 0 3px rgba(242, 115, 32, .3);}
.login .mvl-btn:active, .login input.button-primary:active {background:#d55a06;}
.login .mvl-btn[disabled], .login input.button-primary[disabled] {opacity:.7; cursor:default;}

/* Second-choice button (outlined): the future "Login via Email OTP" */
.login .mvl-btn-alt {
	display:block;
	width:100%;
	height:46px;
	margin:0;
	border:1.5px solid #f3b78b;
	border-radius:10px;
	background:#fff;
	color:#c2560c;
	font-family:inherit;
	font-size:15px;
	font-weight:600;
	line-height:43px;
	text-align:center;
	cursor:pointer;
}
.login .mvl-btn-alt:hover, .login .mvl-btn-alt:focus {background:#fff5ec; text-decoration:none; color:#a94a08; outline:0;}
.mvl-or {
	display:-webkit-box; display:-webkit-flex; display:flex;
	-webkit-box-align:center; -webkit-align-items:center; align-items:center;
	margin:16px 0 12px;
	color:#b59a86;
	font-size:12px;
	text-transform:uppercase;
	letter-spacing:.6px;
}
.mvl-or:before, .mvl-or:after {content:""; -webkit-box-flex:1; -webkit-flex:1; flex:1; height:1px; background:#f0dccb;}
.mvl-or:before {margin-right:10px;}
.mvl-or:after {margin-left:10px;}

/* ---------- Remember me / Lost password row ---------- */
.mvl-row {
	display:-webkit-box; display:-webkit-flex; display:flex;
	-webkit-box-pack:justify; -webkit-justify-content:space-between; justify-content:space-between;
	-webkit-box-align:center; -webkit-align-items:center; align-items:center;
	-webkit-flex-wrap:wrap; flex-wrap:wrap;
	margin:14px 0 0;
	font-size:14px;
}
.mvl-check {display:inline-block; color:#6b5444; cursor:pointer; padding:6px 0; -webkit-user-select:none; user-select:none;}
.login .mvl-check input[type=checkbox] {
	width:18px; height:18px;
	margin:0 6px 0 0;
	vertical-align:-4px;
	accent-color:#ea6a10;
	cursor:pointer;
}
.mvl-row a {padding:6px 0;}

/* ---------- First Time Registration ---------- */
.mvl-register {
	margin:20px -20px -20px;
	padding:16px 20px 18px;
	border-top:1px solid #f6e5d6;
	background:#fffaf5;
	text-align:center;
}
.mvl-register-q {display:block; margin:0 0 8px; color:#8a7363; font-size:13px;}
.login .mvl-btn-soft {
	display:block;
	padding:11px 12px;
	border:1px solid #f6cfae;
	border-radius:10px;
	background:#fff0e2;
	color:#b4510b;
	font-size:15px;
	font-weight:600;
	text-align:center;
}
.login .mvl-btn-soft:hover, .login .mvl-btn-soft:focus {background:#ffe6cf; color:#9e4304; text-decoration:none;}

/* ---------- Under the card ---------- */
.login .mvl-foot {margin:18px 0 0; text-align:center; color:#9a8070; font-size:13px; line-height:1.5;}
.login .mvl-foot a {font-weight:600;}

/* Links at the bottom of Lost / Reset Password */
.login #nav {margin:16px 0 0; text-align:center; font-size:14px;}
.login #nav span {color:#d9bba3;}

/* ---------- Lost password ---------- */
.mvl-quick-error {margin:0 0 12px; padding:9px 12px; border-radius:8px; background:#fdeceb; color:#8f1d1d; border-left:4px solid #d63638; font-size:13.5px; font-weight:600; text-align:left;}
.login .mvl-lost-help {margin:0 0 10px; color:#7a3d0e; font-size:14px; font-weight:600; text-align:left;}
.lost-item {
	display:-webkit-box; display:-webkit-flex; display:flex;
	-webkit-box-align:start; -webkit-align-items:flex-start; align-items:flex-start;
	margin:0 0 8px;
	padding:11px 12px;
	border:1px solid #ead3bf;
	border-radius:10px;
	background:#fff;
	text-align:left;
	cursor:pointer;
}
.lost-item.is-on {border-color:#f28a3c; background:#fff6ee; box-shadow:0 0 0 2px rgba(242, 115, 32, .15);}
.login .lost-item input[type=radio] {width:18px; height:18px; margin:2px 10px 0 0; -webkit-flex-shrink:0; flex-shrink:0; accent-color:#ea6a10;}
.lost-name {display:block; color:#33241a; font-weight:600; line-height:1.3;}
.lost-grade {display:block; margin-top:2px; color:#2f7a3a; font-size:12.5px; font-weight:600; line-height:1.25;}
.lost-school {color:#7a6a9c; font-weight:400;}
.login .new-pass-sent {margin:0 0 10px; text-align:center; font-size:15px;}
.click-to-log-in {text-align:center;}
.new-pass-sent b, .click-to-log-in a {font-weight:600;}

/* ---------- Reset password ---------- */
#resetpassform p {margin:0 0 12px;}
#resetpassform label {display:block; color:#6b5444; font-size:13.5px; font-weight:600;}
#resetpassform label input {margin-top:5px;}
.login #pass-strength-result {
	margin:4px 0 8px;
	padding:8px;
	border-radius:8px;
	background:#f4efea;
	color:#5d4b3e;
	font-size:13px;
	font-weight:600;
	text-align:center;
}
.login #pass-strength-result.short {background:#ffd9d9; color:#8f1d1d;}
.login #pass-strength-result.bad {background:#ffe3c9; color:#8a4300;}
.login #pass-strength-result.good {background:#fff0b5; color:#6b5300;}
.login #pass-strength-result.strong {background:#d9f3cc; color:#245c16;}
.login .indicator-hint {margin:0 0 14px; color:#9a8070; font-size:12.5px; line-height:1.4;}
.login .clear {clear:both;}
.login .hide-if-no-js {display:none;}
.mvl-js .hide-if-no-js {display:block;}

/* ---------- Session expired box inside the admin (interim login) ---------- */
body.interim-login {min-height:0; background:#fff;}
.interim-login #login {padding:8px 8px 4px; max-width:none;}
.interim-login .mvl-card {box-shadow:none; border-radius:0;}
.interim-login .mvl-head {padding:12px 16px 8px;}

/* ---------- Small phones ---------- */
@media screen and (max-width:420px) {
	#login {padding:18px 12px 24px;}
	.mvl-card {border-radius:14px;}
	.mvl-head {padding:18px 12px 12px;}
	.mvl-body {padding:20px 16px 18px;}
	.mvl-register {margin:18px -16px -18px; padding:14px 16px 16px;}
}
@media screen and (max-height:640px) {
	#login {padding-top:16px;}
}

/* ---------- Email OTP ---------- */
.login input.mvl-code {
	height:56px;
	margin:0 0 12px;
	padding:0 10px;
	font-size:26px;
	font-weight:700;
	letter-spacing:10px;
	text-align:center;
	font-variant-numeric:tabular-nums;
}
.login input.mvl-code::placeholder {color:#e0c7b3; letter-spacing:10px;}
.login input.mvl-code::-webkit-input-placeholder {color:#e0c7b3;}
.mvl-resend {margin:14px 0 0; text-align:center; color:#8a7363; font-size:13.5px; line-height:1.6;}
.login .mvl-link {
	display:inline;
	margin:0; padding:4px 2px;
	border:0; background:none;
	color:#c2560c;
	font-family:inherit; font-size:inherit; font-weight:600;
	cursor:pointer;
}
.login .mvl-link:hover, .login .mvl-link:focus {color:#9e4304; text-decoration:underline; outline:0;}
.login .mvl-link[disabled] {color:#b59a86; font-weight:400; cursor:default; text-decoration:none;}
.mvl-dot {margin:0 6px; color:#d9bba3;}
.mvl-resend a, .mvl-resend .mvl-link {white-space:nowrap;}
