/*
 * Bridge Solutions look for the staff login and password reset pages (scp/login.php, scp/pwreset.php).
 * Loaded after scp/css/login.css in include/staff/login.header.php, so it overrides it without editing it.
 */
:root {
	--bridge-primary: #0D68F7;
	--bridge-navy: #17234F;
	--bridge-water: #D3EDF6;
	--bridge-line: #dde3ec;
	--bridge-muted: #5b6478;
}

html, body#loginBody {
	background: var(--bridge-navy);
	background-image:
		radial-gradient(circle at 15% 10%, rgba(13, 104, 247, 0.35) 0, rgba(13, 104, 247, 0) 45%),
		radial-gradient(circle at 85% 90%, rgba(211, 237, 246, 0.18) 0, rgba(211, 237, 246, 0) 40%);
	background-attachment: fixed;
}
body#loginBody {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px 72px;
	box-sizing: border-box;
}
body, input, button {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #333;
	-webkit-font-smoothing: antialiased;
}

/* No background photo */
#brickwall,
#blur,
#background,
#background-compat {
	display: none;
}

/* Card */
#loginBox {
	position: relative;
	left: auto;
	top: auto;
	margin: 0;
	width: 420px;
	max-width: 100%;
	box-sizing: border-box;
	padding: 40px 36px 28px;
	background: #fff !important;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	mix-blend-mode: normal;
}
#loginBox:after {
	display: none;
}
#logo {
	margin: 0 0 20px;
	height: auto;
}
#logo a {
	display: inline-block;
	height: auto;
	filter: none;
	-webkit-filter: none;
}
#logo a img {
	height: 48px;
	width: auto;
	max-width: none;
	max-height: none;
	filter: none;
	-webkit-filter: none;
}
#loginBox h2 {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 700;
	color: var(--bridge-navy);
	letter-spacing: -0.01em;
}
.bridge-login-intro {
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bridge-muted);
}
#login-message {
	margin: 12px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--bridge-muted);
}
#login-message:empty {
	display: none;
}
div.banner:not(:empty) {
	margin-top: 8px;
}

/* Divider */
.or {
	margin: 20px 0;
}
.or hr {
	border: 0;
	border-top: 1px solid var(--bridge-line);
	margin: 0;
}
#loginBox > br {
	display: none;
}

/* Sign-in buttons (Microsoft 365) and the back link */
.external-auth {
	display: block;
	margin: 0;
}
a.external-sign-in {
	display: block;
	text-decoration: none;
}
.external-auth-box {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 18px;
	border: 1px solid var(--bridge-primary);
	border-radius: 10px;
	background: var(--bridge-primary);
	transition: background-color 0.2s, border-color 0.2s;
}
a.external-sign-in:hover .external-auth-box {
	background: var(--bridge-navy);
	border-color: var(--bridge-navy);
}
.external-auth-icon,
.external-auth-name {
	width: auto;
	padding: 0;
	color: #fff;
	line-height: 20px;
}
.external-auth-icon {
	font-size: 16px;
}
.external-auth-name {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 15px;
	font-weight: 700;
}

/* Microsoft logo in place of the sign-in icon on the Microsoft 365 button */
a.external-sign-in:not(.bridge-back-link) .external-auth-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 5px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Crect x='1' y='1' width='9' height='9' fill='%23f25022'/%3E%3Crect x='11' y='1' width='9' height='9' fill='%237fba00'/%3E%3Crect x='1' y='11' width='9' height='9' fill='%2300a4ef'/%3E%3Crect x='11' y='11' width='9' height='9' fill='%23ffb900'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
a.external-sign-in:not(.bridge-back-link) .external-auth-icon i {
	display: none;
}

/* Secondary "Back to the Support Center" link */
a.bridge-back-link .external-auth-box {
	background: #fff;
	border-color: var(--bridge-line);
	padding: 10px 16px;
}
a.bridge-back-link .external-auth-icon,
a.bridge-back-link .external-auth-name {
	color: var(--bridge-navy);
}
a.bridge-back-link .external-auth-name {
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 600;
}
a.bridge-back-link:hover .external-auth-box {
	background: #f1f5fb;
	border-color: var(--bridge-water);
}

/* Password reset forms */
#loginBox form fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}
#loginBox fieldset input {
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 12px;
	padding: 11px 14px;
	font-size: 15px;
	border: 1px solid #c6d0de;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
}
#loginBox fieldset input:focus {
	outline: none;
	border-color: var(--bridge-primary);
	box-shadow: 0 0 0 3px rgba(13, 104, 247, 0.15);
}
#loginBox button[type=submit],
#loginBox input[type=submit],
#loginBox .button {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: var(--bridge-primary);
	border: 1px solid var(--bridge-primary);
	border-radius: 10px;
	padding: 11px 20px;
	box-shadow: none;
	text-shadow: none;
	cursor: pointer;
}
#loginBox button[type=submit]:hover,
#loginBox input[type=submit]:hover,
#loginBox .button:hover {
	background: var(--bridge-navy);
	border-color: var(--bridge-navy);
}

/* Copyright under the card */
#company {
	position: absolute;
	left: 0;
	right: 0;
	width: auto;
	margin: 0;
	bottom: -44px;
	font-size: 13px;
}
#company .content {
	background: none;
	box-shadow: none;
	text-shadow: none;
	color: rgba(255, 255, 255, 0.7);
	padding: 0;
}

@media screen and (max-width: 480px) {
	#loginBox {
		padding: 32px 22px 24px;
	}
}
