/* Promotics CRM: staff sign-in screen. Solid colours, same type and mark as the portal. */
body.login {
	--ink: #141922;
	--ink-2: #3a4252;
	--muted: #687083;
	--line: #e2e5ea;
	--line-strong: #cfd4dc;
	--night: #121821;
	background: #f4f5f7;
	color: var(--ink);
	font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	min-height: 100vh;
	display: block;
}
body.login input, body.login button, body.login label, body.login p, body.login a, body.login h1, body.login h2 { font-family: inherit; }

/* brand panel */
.ks-panel { display: none; }
@media (min-width: 900px) {
	body.login { padding-left: 44%; }
	.ks-panel { display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: 44%; background: var(--accent-deep); color: #fff; padding: 48px 56px; }
	.ks-panel-top { display: flex; align-items: center; gap: 12px; }
	.ks-logo { height: 56px; width: auto; display: block; }
	/* the panel already shows the logo, so the form column does not repeat it */
	.login h1 { display: none; }
	.ks-panel-body { margin: auto 0; max-width: 440px; }
	.ks-kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.66); margin: 0 0 14px; }
	.ks-title { font-size: 38px; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 32px; color: #fff; }
	.ks-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
	.ks-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: rgba(255,255,255,.88); margin: 0; }
	.ks-list svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--accent); stroke-width: 2.6; flex: none; }
	.ks-panel-foot { margin: 0; font-size: 13px; color: rgba(255,255,255,.55); }
}

/* the form column */
#login { width: 380px; max-width: calc(100% - 32px); padding: 12vh 0 40px; margin: 0 auto; }
@media (min-width: 900px) { #login { padding-top: 16vh; } }

.login h1 { margin-bottom: 28px; text-align: left; }
.login h1 a {
	background: none;
	width: auto;
	height: auto;
	margin: 0;
	text-indent: 0;
	overflow: visible;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--ink);
	outline: none;
}
.login h1 a::before {
	content: "";
	width: 42px;
	height: 42px;
	border-radius: 11px;
	flex: none;
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 12 4l9 7'/%3E%3Cpath d='M6 10v10h12V10'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.login h1 a:focus { box-shadow: none; text-decoration: underline; }
/* a custom logo replaces the mark and name */
.login.has-logo h1 a { width: 220px; height: 68px; background-size: contain; background-position: left center; background-repeat: no-repeat; text-indent: -9999px; overflow: hidden; }
.login.has-logo h1 a::before { display: none; }
@media (min-width: 900px) { .login.no-logo h1 { display: none; } }

.ks-heading { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 4px; line-height: 1.2; }
.ks-sub { font-size: 15px; color: var(--muted); margin: 0; }


.login form {
	margin-top: 22px;
	padding: 26px 24px 24px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: none;
	overflow: visible;
}
.login label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; display: inline-block; }
.login form .input, .login input[type="text"], .login input[type="password"], .login input[type="email"] {
	font-size: 16px;
	min-height: 46px;
	padding: 8px 14px;
	margin: 0 0 18px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--ink);
}
.login form .input:focus, .login input[type="text"]:focus, .login input[type="password"]:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
	outline: none;
}
.login .wp-pwd { margin-bottom: 0; }
.login .button.wp-hide-pw { height: 46px; min-height: 46px; width: 46px; color: var(--muted); border-radius: 0 10px 10px 0; }
.login .button.wp-hide-pw:focus { border-color: var(--accent); box-shadow: none; }
.login .button.wp-hide-pw .dashicons { top: 0.6rem; }
.login .forgetmenot { margin: 4px 0 0; float: none; }
.login .forgetmenot label { font-weight: 500; color: var(--ink-2); }
.login input[type="checkbox"] { border-radius: 5px; border-color: var(--line-strong); box-shadow: none; width: 18px; height: 18px; }
.login input[type="checkbox"]:checked::before { content: none; }
.login input[type="checkbox"]:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; border-color: var(--accent); }
.login .submit { margin-top: 18px; padding: 0; }
.login .button-primary, .wp-core-ui .button-primary {
	float: none;
	width: 100%;
	height: 48px;
	min-height: 48px;
	font-size: 15.5px;
	font-weight: 700;
	border-radius: 10px;
	background: var(--accent);
	border: 1px solid var(--accent);
	box-shadow: none;
	text-shadow: none;
	color: #fff;
}
.login .button-primary:hover, .login .button-primary:focus, .wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; box-shadow: none; }
.login .button-primary:focus { box-shadow: 0 0 0 3px var(--accent-soft); }

.login #nav, .login #backtoblog { margin: 18px 0 0; padding: 0; font-size: 14px; text-align: left; }
.login #nav a, .login #backtoblog a { color: var(--ink-2); font-weight: 500; }
.login #nav a:hover, .login #backtoblog a:hover { color: var(--accent); }
.login #backtoblog { margin-top: 10px; }

.login .message, .login .notice, .login .success, .login #login_error {
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: 10px;
	box-shadow: none;
	background: #fff;
	padding: 12px 14px;
	margin: 20px 0 0;
	font-size: 14px;
}
.login #login_error, .login .notice-error { border-left-color: #c23b30; background: #fbe9e7; border-color: #f3cfca; }
.login .privacy-policy-page-link { margin: 32px 0 0; }
.login .privacy-policy-page-link a { color: var(--muted); }
.login .language-switcher { margin: 0 auto 32px; max-width: 380px; }
.login #language-switcher { padding: 0; }
.login .language-switcher .button { border-radius: 8px; }
