/* =====================================================================
   JustPrint sign in / sign up pages
   ===================================================================== */
.jp-auth {
	float: left;
	width: 100%;
	box-sizing: border-box;
	padding: 48px 15px 64px;
	background: linear-gradient(180deg, #f1f8f7 0%, #ffffff 520px);
	color: #546e7a;
}
.jp-auth * { box-sizing: border-box; }

.jp-auth-card {
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	padding: 36px 34px 30px;
	background: #fff;
	border: 1px solid #e4ecee;
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(16, 24, 40, .08);
}
.jp-auth-card.wide { max-width: 560px; }

.jp-auth-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 16px;
	background: #e6f4f2;
	color: #26a69a;
	font-size: 24px;
}
.jp-auth-card h1 {
	margin: 0 0 6px;
	font: 700 26px/1.25 Roboto, Arial, sans-serif;
	color: #263238;
	text-align: center;
	text-transform: none;
}
.jp-auth-sub {
	margin: 0 0 24px;
	font-size: 14.5px;
	line-height: 1.55;
	color: #78909c;
	text-align: center;
}

/* alerts */
.jp-auth-alert {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
}
.jp-auth-alert i { margin-top: 3px; }
.jp-auth-alert.bad { background: #ffebee; border: 1px solid #ef9a9a; color: #b71c1c; }
.jp-auth-alert.ok  { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; }

/* fields */
.jp-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.jp-auth-field { margin: 0 0 16px; }
.jp-auth-field > label {
	display: block;
	margin: 0 0 6px;
	font: 600 13px/1.3 Roboto, Arial, sans-serif;
	color: #455a64;
}
.jp-auth-field > label em { color: #e53935; font-style: normal; margin-left: 2px; }
.jp-auth-field > label small { font-weight: 400; color: #90a4ae; }
.jp-auth-input { position: relative; }
.jp-auth-input > i.ic {
	position: absolute;
	left: 14px;
	top: 50%;
	margin-top: -8px;
	font-size: 16px;
	line-height: 16px;
	color: #90a4ae;
	pointer-events: none;
	transition: color .18s;
}
.jp-auth-input input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 14px 0 42px;
	border: 1px solid #d5dde3;
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	line-height: normal;
	color: #263238;
	transition: border-color .18s, box-shadow .18s;
	-webkit-appearance: none;
	appearance: none;
}
.jp-auth-input input::placeholder { color: #b0bec5; }
.jp-auth-input input:focus {
	outline: 0;
	border-color: #26a69a;
	box-shadow: 0 0 0 4px rgba(38, 166, 154, .15);
}
.jp-auth-input:focus-within > i.ic { color: #26a69a; }
.jp-auth-input.has-eye input { padding-right: 46px; }
.jp-auth-input input.error { border-color: #e57373; box-shadow: none; }
.jp-auth-input .eye {
	position: absolute;
	right: 4px;
	top: 4px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #90a4ae;
	font-size: 16px;
	cursor: pointer;
}
.jp-auth-input .eye:hover { color: #26a69a; background: #f1f8f7; }
.jp-auth label.error {
	display: block;
	margin: 5px 0 0;
	padding: 0;
	font: 400 12.5px/1.4 Roboto, Arial, sans-serif;
	color: #c62828;
}

/* password strength */
.jp-pw-meter { display: flex; gap: 5px; margin: 8px 0 0; }
.jp-pw-meter span { flex: 1; height: 4px; border-radius: 2px; background: #e3eaee; transition: background-color .2s; }
.jp-pw-meter[data-s="1"] span:nth-child(-n+1) { background: #ef5350; }
.jp-pw-meter[data-s="2"] span:nth-child(-n+2) { background: #ffa726; }
.jp-pw-meter[data-s="3"] span:nth-child(-n+3) { background: #9ccc65; }
.jp-pw-meter[data-s="4"] span:nth-child(-n+4) { background: #26a69a; }
.jp-pw-hint { margin: 6px 0 0; font-size: 12.5px; color: #90a4ae; }

/* buttons */
.jp-auth-btn {
	display: block;
	width: 100%;
	height: 50px;
	padding: 0 20px;
	border: 0;
	border-radius: 12px;
	background: #26a69a;
	color: #fff;
	font: 600 16px/50px Roboto, Arial, sans-serif;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(38, 166, 154, .3);
	transition: background-color .18s, transform .1s;
}
.jp-auth-btn:hover { background: #1f8f85; color: #fff; text-decoration: none; }
.jp-auth-btn:active { transform: translateY(1px); }
.jp-auth-btn[disabled] { opacity: .7; cursor: default; }
.jp-auth-btn.ghost {
	background: #fff;
	color: #37474f;
	border: 1.5px solid #d5dde3;
	line-height: 47px;
	box-shadow: none;
}
.jp-auth-btn.ghost:hover { border-color: #26a69a; color: #26a69a; background: #f1f8f7; }

.jp-auth-or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #b0bec5;
}
.jp-auth-or:before, .jp-auth-or:after { content: ""; flex: 1; height: 1px; background: #e8eef1; }

.jp-auth-foot { margin: 22px 0 0; text-align: center; font-size: 14.5px; color: #78909c; }
.jp-auth-foot a { color: #26a69a; font-weight: 600; }
.jp-auth-foot a:hover { color: #1f8f85; text-decoration: underline; }
.jp-auth-legal { margin: 14px 0 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: #90a4ae; }
.jp-auth-legal a { color: #607d8b; text-decoration: underline; }

.jp-auth-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 13px; color: #607d8b; }
.jp-auth-perks li { margin: 0; padding: 0; }
.jp-auth-perks i { margin-right: 6px; color: #26a69a; }

@media (max-width: 560px) {
	.jp-auth { padding: 26px 12px 44px; }
	.jp-auth-card { padding: 28px 20px 24px; border-radius: 16px; }
	.jp-auth-row { grid-template-columns: 1fr; }
	.jp-auth-card h1 { font-size: 23px; }
}
