/* OLI sign-in page (includes/loginform.php) */

:root {
	--brand: #66c5e5;
	--brand-strong: #1d7ea6;
	--brand-strong-hover: #166788;
	--bg: #f2f5f7;
	--surface: #ffffff;
	--border: #dde4e8;
	--border-strong: #c5d0d6;
	--text: #1f2a30;
	--text-muted: #5b6b73;
	--danger: #c62828;
	--font: "proxima-nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	padding: 24px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(102, 197, 229, .22), transparent 60%),
		radial-gradient(900px 500px at 110% 110%, rgba(29, 126, 166, .12), transparent 60%),
		var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

#loginForm {
	width: 100%;
	max-width: 380px;
	margin: 0 auto;
	padding: 32px 32px 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 4px solid var(--brand);
	border-radius: 14px;
	box-shadow: 0 2px 6px rgba(16, 32, 40, .06), 0 24px 48px rgba(16, 32, 40, .10);
	font-family: var(--font);
}

#loginForm center {
	margin-bottom: 22px;
}

#loginForm center img {
	display: block;
	width: 170px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

#loginForm table,
#loginForm tbody,
#loginForm tr,
#loginForm td {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

#loginForm td + td {
	margin-top: 6px;
}

#loginForm label {
	color: var(--text-muted);
	font-size: 13.5px;
	font-weight: 600;
}

#loginForm p {
	margin: 12px 0 0;
}

#loginForm small {
	color: var(--text-muted);
	font-size: 13px;
}

#loginForm b {
	color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="password"] {
	display: block;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 8px 12px;
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--border-strong);
	border-radius: 8px;
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming into the field */
	transition: border-color .15s, box-shadow .15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(102, 197, 229, .35);
}

#otpcode {
	height: 52px;
	font-size: 26px;
	font-variant-numeric: tabular-nums;
	letter-spacing: .4em;
	text-align: center;
	padding-left: calc(12px + .4em); /* balance the trailing letter-spacing */
}

input[type="submit"] {
	display: block;
	width: 100%;
	height: 44px;
	margin-top: 16px;
	padding: 0 16px;
	background: var(--brand-strong);
	color: #ffffff;
	border: 1px solid var(--brand-strong);
	border-radius: 8px;
	font: inherit;
	font-size: 15px;
	font-weight: 650;
	cursor: pointer;
	transition: background-color .15s, box-shadow .15s;
}

input[type="submit"]:hover {
	background: var(--brand-strong-hover);
	border-color: var(--brand-strong-hover);
}

input[type="submit"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(102, 197, 229, .5);
}

input:disabled {
	opacity: .6;
	cursor: not-allowed;
}

/* Text-style buttons ("send a new code", "use a different username") */
.linkbutton {
	display: inline;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	color: var(--brand-strong);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.linkbutton:hover {
	color: var(--brand-strong-hover);
}

#loginMessage {
	min-height: 1.2em;
	margin-top: 16px;
	color: var(--text-muted);
	font-size: 14px;
}

#loginMessage:empty {
	margin-top: 0;
}

#loginMessage.error {
	padding: 10px 12px;
	background: #fdecec;
	color: var(--danger);
	border-radius: 8px;
}

#recoverycode {
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 18px;
	letter-spacing: .08em;
	text-align: center;
	text-transform: uppercase;
}
