/* Connect CRM sign-in screen. Loaded after WordPress's own login styles and replaces their look entirely. */

html { background: #070B16; }
body.ccrm-login {
	margin: 0; min-height: 100vh; background: #070B16; color: #E5E9F5;
	font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.ccrm-login * { box-sizing: border-box; }

/* ---------- Left: the family of sites feeding the hub ---------- */

.ccrm-art {
	position: fixed; top: 0; bottom: 0; left: 0; right: 42%; overflow: hidden;
	display: flex; flex-direction: column;
	background:
		radial-gradient(820px 560px at 28% 16%, rgba(79, 70, 229, .30), transparent 62%),
		radial-gradient(640px 480px at 86% 92%, rgba(34, 211, 238, .11), transparent 60%),
		radial-gradient(520px 420px at 4% 96%, rgba(240, 127, 174, .09), transparent 60%),
		#0A1022;
	border-right: 1px solid rgba(255, 255, 255, .06);
}
.ccrm-art::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 46px 46px;
	-webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0, transparent 72%); mask-image: radial-gradient(circle at 50% 46%, #000 0, transparent 72%);
}
.ccrm-art > * { position: relative; }
.ccrm-art__brand { display: flex; align-items: center; gap: 12px; padding: 30px 40px 0; font-size: 19px; font-weight: 500; letter-spacing: -.01em; color: #fff; }
.ccrm-art__brand b { font-weight: 700; }
.ccrm-art__brand svg { display: block; border-radius: 10px; box-shadow: 0 8px 24px -6px rgba(79, 70, 229, .9); }
.ccrm-art__map { flex: 1 1 auto; min-height: 0; width: 100%; padding: 4px 20px 0; }
.ccrm-art__copy { padding: 6px 48px 46px; }
.ccrm-art__copy h2 { margin: 0 0 10px; font-size: clamp(24px, 2.35vw, 35px); line-height: 1.1; letter-spacing: -.025em; font-weight: 650; color: #fff; }
.ccrm-art__copy p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #94A1C2; max-width: 470px; }

.ccrm-art__ring { fill: none; stroke: rgba(255, 255, 255, .10); stroke-width: 1; stroke-dasharray: 2 9; transform-origin: 360px 360px; animation: ccrm-spin 140s linear infinite; }
.ccrm-art__ring--in { stroke: rgba(129, 140, 248, .16); animation-duration: 90s; animation-direction: reverse; }
.ccrm-art__link { stroke-width: 1.3; opacity: .30; }
.ccrm-art__packet { opacity: 0; filter: drop-shadow(0 0 6px currentColor); }
.ccrm-art__pulse { fill: none; stroke: #818CF8; stroke-width: 1.5; opacity: 0; transform-origin: 360px 360px; animation: ccrm-pulse 3.6s ease-out infinite; }
.ccrm-art__pulse--late { animation-delay: 1.8s; }
.ccrm-art__node { animation: ccrm-float 6.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.ccrm-art__name { fill: #C6CFEA; font-size: 21px; font-weight: 400; letter-spacing: -.012em; }
.ccrm-art__name tspan { fill: #fff; font-weight: 700; }
.ccrm-art__domain { fill: #6E7BA0; font-size: 12.5px; letter-spacing: .01em; }

@keyframes ccrm-spin { to { transform: rotate(360deg); } }
@keyframes ccrm-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.5); opacity: 0; } }
@keyframes ccrm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ccrm-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Right: the welcome and the form ---------- */

body.ccrm-login #login {
	position: relative; width: 42%; max-width: none; min-height: 100vh; margin: 0 0 0 58%; padding: 48px 0;
	display: flex; flex-direction: column; justify-content: center; align-items: center; background: #070B16;
}
body.ccrm-login #login > * { width: min(372px, 84%); animation: ccrm-rise .5s ease both; }
body.ccrm-login #login > h1 { display: none; }
body.ccrm-login #login h1 a {
	display: flex; align-items: center; gap: 11px; width: auto; height: auto; margin: 0 0 30px; padding: 0 0 0 46px; min-height: 34px; overflow: visible;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='9' fill='%234F46E5'/%3E%3Cpath d='M10 11.5a4.5 4.5 0 0 1 7.3-3.5M22 20.5a4.5 4.5 0 0 1-7.3 3.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='20.5' cy='10.5' r='3' fill='%23fff'/%3E%3Ccircle cx='11.5' cy='21.5' r='3' fill='%23fff'/%3E%3C/svg%3E") left center / 34px 34px no-repeat;
	font-size: 19px; font-weight: 600; line-height: 34px; letter-spacing: -.01em; color: #fff; text-indent: 0; text-decoration: none; box-shadow: none; outline-offset: 4px;
}

.ccrm-welcome { margin: 0 0 28px; }
.ccrm-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: #A5B4FC; }
.ccrm-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.ccrm-welcome h2 { margin: 14px 0 12px; font-size: clamp(30px, 2.7vw, 40px); line-height: 1.08; letter-spacing: -.028em; font-weight: 650; color: #fff; }
.ccrm-welcome__name { background: linear-gradient(92deg, #C7D2FE 0%, #818CF8 45%, #67E8F9 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #A5B4FC; }
.ccrm-welcome p { margin: 0; font-size: 15px; color: #93A0BF; }

body.ccrm-login #login form { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; font-weight: 400; }
body.ccrm-login #login form p { margin: 0; }
body.ccrm-login #login label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 500; line-height: 1.4; color: #B6C0DA; }
body.ccrm-login #login form .input,
body.ccrm-login #login input[type="text"],
body.ccrm-login #login input[type="password"],
body.ccrm-login #login input[type="email"] {
	display: block; width: 100%; height: 50px; min-height: 0; margin: 0 0 18px; padding: 0 14px;
	font: inherit; font-size: 16px; line-height: 1.2; color: #fff; caret-color: #A5B4FC;
	background: #0E1630; border: 1px solid rgba(255, 255, 255, .13); border-radius: 12px; box-shadow: none; outline: 0;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
body.ccrm-login #login input[type="text"]:hover,
body.ccrm-login #login input[type="password"]:hover,
body.ccrm-login #login input[type="email"]:hover { border-color: rgba(255, 255, 255, .24); }
body.ccrm-login #login input[type="text"]:focus,
body.ccrm-login #login input[type="password"]:focus,
body.ccrm-login #login input[type="email"]:focus { border-color: #6366F1; background: #101A38; box-shadow: 0 0 0 4px rgba(99, 102, 241, .28); }
body.ccrm-login #login input:-webkit-autofill,
body.ccrm-login #login input:-webkit-autofill:focus { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #0E1630 inset; caret-color: #fff; transition: background-color 9999s; }

body.ccrm-login #login .wp-pwd { position: relative; }
body.ccrm-login #login .wp-pwd .input { padding-right: 50px; }
body.ccrm-login #login .wp-hide-pw {
	position: absolute; top: 5px; right: 5px; width: 40px; height: 40px; min-width: 0; min-height: 0; margin: 0; padding: 0;
	display: flex; align-items: center; justify-content: center; color: #93A0BF; background: transparent; border: 0; border-radius: 9px; box-shadow: none; cursor: pointer;
}
body.ccrm-login #login .wp-hide-pw:hover { color: #fff; background: rgba(255, 255, 255, .06); }
body.ccrm-login #login .wp-hide-pw:focus { outline: 2px solid #6366F1; outline-offset: 0; box-shadow: none; color: #fff; }
body.ccrm-login #login .wp-hide-pw .dashicons { position: static; width: 20px; height: 20px; font-size: 20px; }

body.ccrm-login #login .forgetmenot { display: flex; align-items: center; gap: 10px; float: none; margin: 2px 0 24px; }
body.ccrm-login #login .forgetmenot label { margin: 0; font-size: 14px; font-weight: 400; color: #93A0BF; cursor: pointer; }
body.ccrm-login #login input[type="checkbox"] {
	-webkit-appearance: none; appearance: none; position: relative; flex: none; width: 18px; height: 18px; min-width: 0; margin: 0;
	background: #0E1630; border: 1px solid rgba(255, 255, 255, .24); border-radius: 5px; box-shadow: none; cursor: pointer; transition: background-color .12s, border-color .12s;
}
body.ccrm-login #login input[type="checkbox"]:checked { background: #4F46E5; border-color: #4F46E5; }
body.ccrm-login #login input[type="checkbox"]::before { content: none; }
body.ccrm-login #login input[type="checkbox"]:checked::after {
	content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
body.ccrm-login #login input[type="checkbox"]:focus { outline: 2px solid #6366F1; outline-offset: 2px; box-shadow: none; }

body.ccrm-login #login .submit { float: none; margin: 0; padding: 0; }
body.ccrm-login #login .button-primary,
body.ccrm-login #login #wp-submit {
	display: block; float: none; width: 100%; height: 52px; min-height: 0; margin: 0; padding: 0 18px;
	font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.005em; line-height: 1; color: #fff; text-shadow: none;
	background: linear-gradient(180deg, #6B6EF5 0%, #4F46E5 100%); border: 0; border-radius: 12px; cursor: pointer;
	box-shadow: 0 14px 34px -12px rgba(79, 70, 229, .85), inset 0 1px 0 rgba(255, 255, 255, .22);
	transition: filter .14s, transform .08s, box-shadow .14s;
}
body.ccrm-login #login .button-primary:hover { filter: brightness(1.1); box-shadow: 0 18px 40px -12px rgba(79, 70, 229, 1), inset 0 1px 0 rgba(255, 255, 255, .22); }
body.ccrm-login #login .button-primary:active { transform: translateY(1px); filter: brightness(.97); }
body.ccrm-login #login .button-primary:focus { outline: 2px solid #A5B4FC; outline-offset: 3px; }

body.ccrm-login #login #nav { margin: 22px 0 0; padding: 0; font-size: 14px; text-align: left; color: #5C688A; }
body.ccrm-login #login #nav a,
body.ccrm-login #login a { color: #A5B4FC; text-decoration: none; transition: color .12s; }
body.ccrm-login #login #nav a:hover,
body.ccrm-login #login a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
body.ccrm-login #login a:focus { box-shadow: none; outline: 2px solid #6366F1; outline-offset: 3px; border-radius: 4px; }
body.ccrm-login #backtoblog,
body.ccrm-login .privacy-policy-page-link,
body.ccrm-login .language-switcher { display: none; }

body.ccrm-login #login #login_error,
body.ccrm-login #login .message,
body.ccrm-login #login .success,
body.ccrm-login #login .notice {
	margin: 0 0 20px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: #E5E9F5; word-wrap: break-word;
	background: #101934; border: 1px solid rgba(255, 255, 255, .10); border-left: 3px solid #818CF8; border-radius: 10px; box-shadow: none;
}
body.ccrm-login #login #login_error,
body.ccrm-login #login .notice-error { border-left-color: #F87171; }
body.ccrm-login #login .success { border-left-color: #34D399; }
body.ccrm-login #login .notice p { margin: 0; }
body.ccrm-login #login .indicator-hint,
body.ccrm-login #login .description { color: #93A0BF; font-size: 13px; }
body.ccrm-login #login #pass-strength-result { margin: -8px 0 16px; border-radius: 8px; color: #0B1220; }
body.ccrm-login #login .reset-pass-submit { display: flex; gap: 10px; flex-wrap: wrap; }
body.ccrm-login #login .button:not(.button-primary):not(.wp-hide-pw) {
	height: 44px; padding: 0 16px; font: inherit; font-size: 14px; color: #E5E9F5; background: #0E1630; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; box-shadow: none; cursor: pointer;
}

/* The small sign-in box WordPress shows over a page when a session has run out. */
body.ccrm-login.interim-login .ccrm-art { display: none; }
body.ccrm-login.interim-login #login { width: 100%; margin: 0; min-height: 0; padding: 28px 0; }

/* ---------- Narrow screens: the sites sit above the form ---------- */

@media (max-width: 920px) {
	.ccrm-art { position: relative; right: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
	.ccrm-art__brand { padding: 22px 22px 0; font-size: 17px; }
	.ccrm-art__map { flex: none; height: min(64vw, 340px); padding: 0 6px; }
	.ccrm-art__copy { display: none; }
	.ccrm-art__name { font-size: 22px; }
	.ccrm-art__domain { display: none; }
	body.ccrm-login #login { width: 100%; margin: 0; min-height: 0; padding: 34px 0 56px; justify-content: flex-start; }
	body.ccrm-login #login > * { width: min(420px, 88%); }
}

@media (prefers-reduced-motion: reduce) {
	.ccrm-art__ring, .ccrm-art__pulse, .ccrm-art__node, body.ccrm-login #login > * { animation: none; }
	.ccrm-art__packet { display: none; }
}
