/*
 * The login screen. A dark panel on the left (the site's name, "Welcome back.", the Xplicit Tech credit,
 * the website's slant on its edge); the form on white under the site's own logo. The same colors on every
 * site. Slanted edges use masks, never clip-path (it leaves jagged edges on Windows at 1x).
 * body.login.xte = the form styling (also in the admin's "session expired" box); .xte-split = the panel layout.
 */
body.login.xte {
	--ink: #14171a; --muted: #5b636b; --line: #d6dbe0; --blue: #0066d6; --blue-dark: #0053b0; --blue-on-dark: #3d9bff;
	--dots: radial-gradient(rgba(255, 255, 255, .085) 1.1px, transparent 1.6px);
	--tri-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0H10L0 10z'/%3E%3C/svg%3E");
	--fill: linear-gradient(#000 0 0);
	background: #fff;
	color: var(--ink);
	font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* The form column. */
.xte #login { width: 360px; max-width: calc(100vw - 40px); padding: 9vh 0 40px; }
.xte h1 a { width: 240px; max-width: 100%; height: 60px; margin: 0 0 28px; background-size: contain; background-position: left center; }
.xte .xte-title { margin: 0 0 22px; font: 800 2.125rem/1.08 "Archivo", system-ui, sans-serif; font-stretch: 112%; letter-spacing: -.015em; }
.xte form { margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; overflow: visible; }
.xte label { font-size: 14px; font-weight: 600; color: var(--ink); }
.xte .login form .input, .xte input[type="text"], .xte input[type="password"], .xte input[type="email"] {
	min-height: 50px; margin: 6px 0 18px; padding: 0 14px; font-size: 16px; border: 1px solid var(--line); border-radius: 3px; background: #fff; box-shadow: none;
}
.xte input[type="text"]:focus, .xte input[type="password"]:focus, .xte input[type="email"]:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); outline: none; }
.xte .forgetmenot { float: none; margin: 0 0 22px; }
.xte .forgetmenot label { font-weight: 500; }
.xte .submit { clear: both; }
.xte .button.wp-hide-pw { top: 7px; height: 36px; }
.xte .button.wp-hide-pw .dashicons { color: var(--muted); }
/* The button: the website's blue, with its slanted right edge. */
.xte.wp-core-ui .button-primary, .xte .button-primary {
	float: none; width: 100%; min-height: 52px; padding: 0 30px 0 22px; border: 0; border-radius: 0; background: var(--blue);
	font: 700 16px/1 "Archivo", system-ui, sans-serif; text-align: left; box-shadow: none; text-shadow: none;
	-webkit-mask: var(--fill) left / calc(100% - 14px) 100% no-repeat, var(--tri-tl) right / 14px 100% no-repeat;
	mask: var(--fill) left / calc(100% - 14px) 100% no-repeat, var(--tri-tl) right / 14px 100% no-repeat;
	transition: background .3s;
}
.xte .button-primary:hover, .xte .button-primary:focus { background: var(--blue-dark); }
.xte #nav, .xte #backtoblog { margin: 22px 0 0; padding: 0; font-size: 14px; }
.xte #backtoblog { margin-top: 8px; }
.xte #nav a, .xte #backtoblog a, .xte .privacy-policy-link { color: var(--muted); }
.xte #nav a:hover, .xte #backtoblog a:hover, .xte .privacy-policy-link:hover { color: var(--blue); }
body.login.xte .privacy-policy-page-link { width: auto; margin: 28px 0 0; text-align: left; } /* it sits inside #login */
.xte .message, .xte .notice, .xte .success, .xte #login_error {
	margin: 0 0 22px; padding: 12px 14px; border: 0; border-left: 3px solid var(--blue); background: #eef5ff; box-shadow: none; font-size: 14px;
}
.xte #login_error { border-left-color: #d63638; background: #fcf0f1; }
.xte .xte-login-care { box-sizing: border-box; width: 360px; max-width: calc(100vw - 40px); margin: 26px auto 0; text-align: left; font-size: 13px; color: var(--muted); }
.xte .xte-login-care a { color: var(--muted); }
.xte .xte-login-care a:hover { color: var(--blue); }
.xte .xte-login-care a[href^="tel:"] { white-space: nowrap; }

/* The panel. */
.xte-split .xte-panel {
	position: fixed; top: 0; left: 0; bottom: 0; width: min(44vw, 640px); box-sizing: border-box;
	display: flex; flex-direction: column; justify-content: space-between; padding: 44px 96px 40px 48px;
	color: #fff; background: radial-gradient(60% 50% at 0% 100%, rgba(0, 102, 214, .28), transparent 70%), var(--dots) 0 0 / 16px 16px, var(--ink);
	-webkit-mask: var(--fill) left / calc(100% - 90px) 100% no-repeat, var(--tri-tl) right / 90px 100% no-repeat;
	mask: var(--fill) left / calc(100% - 90px) 100% no-repeat, var(--tri-tl) right / 90px 100% no-repeat;
}
.xte-split .xte-panel a { color: inherit; text-decoration: none; }
.xte-panel__site { align-self: flex-start; font-weight: 700; font-size: 17px; }
.xte-panel__big { margin: 0 0 14px; font: 800 clamp(2.5rem, 4.4vw, 4rem)/1 "Archivo", system-ui, sans-serif; font-stretch: 118%; letter-spacing: -.02em; }
.xte-panel__big span { color: var(--blue-on-dark); }
.xte-panel__sub { margin: 0; max-width: 26ch; font-size: 17px; line-height: 1.5; color: #9aa2ab; }
.xte-panel__care { margin: 0; font-size: 13px; color: #8b939b; }
.xte-split .xte-panel__care a:hover, .xte-split .xte-panel__site:hover { color: var(--blue-on-dark); }
.xte-split #login { margin: 0 auto; }
@media (min-width: 821px) {
	body.login.xte-split { padding-left: min(44vw, 640px); }
	.xte-split #login { padding-top: 12vh; }
	.xte-split .xte-login-care { display: none; } /* it's in the panel */
}
@media (max-width: 820px) {
	.xte-split .xte-panel {
		position: relative; width: auto; padding: 22px 24px 42px; gap: 22px;
		-webkit-mask: var(--fill) top / 100% calc(100% - 28px) no-repeat, var(--tri-tl) bottom / 100% 28px no-repeat;
		mask: var(--fill) top / 100% calc(100% - 28px) no-repeat, var(--tri-tl) bottom / 100% 28px no-repeat;
	}
	.xte-panel__big { font-size: 2.25rem; margin-bottom: 8px; }
	.xte-panel__sub { font-size: 15px; }
	.xte-panel__care { display: none; }
	.xte-split #login { padding-top: 28px; }
}
