/**
 * wp-signup.php (the multisite registration page), network-wide.
 *
 * Printed by signup_header_override() via the before_signup_form hook -- the
 * <link> lands in the body, after every stylesheet in the head (including the
 * late external fragment), so these rules win all load-order ties.
 *
 * Same design language as the store and wp-login: Lato, square corners,
 * white cards with hairline borders, brand-green primary actions.
 *
 * Markup (core wp-signup): .signup-title (theme's heading), then
 * #signup-content.widecolumn > .mu_register > h2 + form#setupform with
 * label/input pairs, description <p>s, and p.submit input.submit. The
 * second step (validation results / "check your email") reuses .mu_register
 * with its own h2 + paragraphs, so nothing here may hide those.
 */

.signup-title {
	max-width: 440px;
	margin: 26px auto 0;
	font-family: Lato, arial, helvetica, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	color: #1c1e21;
	text-align: left;
}

#signup-content.widecolumn {
	width: auto;
	max-width: 440px;
	margin: 0 auto;
	padding: 0;
	font-family: Lato, arial, helvetica, sans-serif;
}

/* The card. Core's inline style block sizes .mu_register at 90% width, and
   blog-style.css caps `#signup-content .wp-signup-container` at 400px --
   id+class, which outranks any class-only selector no matter the load
   order. That 40px deficit vs the 440px under-card was the misalignment;
   the #signup-content prefix here outranks it back. */
#signup-content .mu_register.wp-signup-container,
#signup-content .mu_register {
	width: 100%;
	max-width: none;
	margin: 16px 0 0;
	padding: 24px;
	background: #fff;
	border: 1px solid #e2e5e8;
	border-radius: 0;
	box-sizing: border-box;
}

/* Core's "Get your own ... account in seconds" heading, and the step-two
   headings: quiet sub-lede, not a second title. */
.mu_register h2 {
	max-width: none;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: #6b7280;
	text-align: left;
}

.mu_register label {
	display: block;
	margin: 14px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #1c1e21;
}

.mu_register label:first-of-type {
	margin-top: 0;
}

.mu_register input[type="text"],
.mu_register input[type="email"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 6px 0 0;
	padding: 11px 12px;
	border: 1px solid #b8bfc6;
	border-radius: 0;
	background: #fff;
	font-family: Lato, arial, helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: #1c1e21;
	box-shadow: none;
}

.mu_register input[type="text"]:focus,
.mu_register input[type="email"]:focus {
	border-color: #50ae26;
	box-shadow: 0 0 0 3px rgba(80, 174, 38, 0.15);
	outline: none;
}

/* Field descriptions ("Must be at least 4 characters..."). */
.mu_register #wp-signup-username-description,
.mu_register #wp-signup-email-description {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #6b7280;
}

/* Body copy inside the card ("You are logged in already. No need to
   register again!" and friends). Core's inline styles set 18px. */
.mu_register p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.55;
	color: #1c1e21;
}

/* Core's admin notice ("Greetings Network Administrator!..."): the store's
   card treatment instead of the yellow slab core inlines. */
.mu_register .mu_alert {
	margin: 0 0 14px;
	padding: 13px 16px;
	background: #fff;
	border: 1px solid #e2e5e8;
	border-left: 4px solid #50ae26;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #1c1e21;
}

.mu_register .mu_alert a {
	color: #50ae26;
	font-weight: 700;
	text-decoration: none;
}

.mu_register .mu_alert a:hover {
	text-decoration: underline;
}

/* Validation errors: the store's red-edge card, replacing core's styling. */
.mu_register .error,
.mu_register p.error {
	margin: 8px 0 0;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #e2e5e8;
	border-left: 4px solid #d63638;
	font-size: 13px;
	line-height: 1.5;
	color: #b32d2e;
}

.mu_register p.submit {
	margin: 20px 0 0;
	padding: 0;
}

/* #signup-content prefix: blog-style styles this submit via
   `#signup-content .wp-signup-container input[type=submit]` -- blue
   (#336699) with margin-bottom:150px (the mystery gap under the button).
   The id must be matched to outrank it. */
#signup-content .mu_register p.submit input.submit,
#signup-content .mu_register input[type="submit"] {
	margin-bottom: 0;
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 13px 16px;
	background: #50ae26;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-shadow: none;
	color: #fff;
	font-family: Lato, arial, helvetica, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

#signup-content .mu_register p.submit input.submit:hover,
#signup-content .mu_register input[type="submit"]:hover,
#signup-content .mu_register input[type="submit"]:active {
	background: #46991f;
	background-color: #46991f;
	color: #fff;
}

/* -------------------------------------------------------------------------
 * The under-card (fg_signup_footer()): membership pointer + back to sign-in.
 * Same look as the login page's .fg-login-alt.
 * ---------------------------------------------------------------------- */
.fg-signup-alt {
	max-width: 440px;
	margin: 18px auto 30px;
	padding: 22px 24px;
	background: #fff;
	border: 1px solid #e2e5e8;
	box-sizing: border-box;
	font-family: Lato, arial, helvetica, sans-serif;
}

.fg-signup-alt h2 {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	font-size: 15px;
	font-weight: 700;
	color: #1c1e21;
	text-align: left;
}

.fg-signup-alt p {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
}

.fg-signup-alt__link {
	font-size: 13px;
	font-weight: 700;
	color: #50ae26;
	text-decoration: none;
}

.fg-signup-alt__link:hover {
	text-decoration: underline;
}

.fg-signup-alt__signin {
	margin: 18px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid #e2e5e8;
}

.fg-signup-alt__button {
	display: block;
	width: 100%;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #50ae26;
	border-radius: 0;
	box-sizing: border-box;
	color: #50ae26;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.fg-signup-alt__button:hover {
	background: #50ae26;
	color: #fff;
}

@media (max-width: 480px) {
	.signup-title,
	#signup-content.widecolumn,
	.fg-signup-alt {
		max-width: none;
		margin-left: 12px;
		margin-right: 12px;
	}
}

/* -------------------------------------------------------------------------
 * Dark mode (theme-fg cookie -> body.dark-mode, stamped by
 * header-wp-signup.php; the external css turns #wrapper near-black).
 * Classic mode needs nothing extra: light cards on the beige canvas, same
 * as the store.
 * ---------------------------------------------------------------------- */
body.dark-mode .signup-title {
	color: #e8eaed;
}

body.dark-mode #signup-content .mu_register,
body.dark-mode .fg-signup-alt,
body.dark-mode .mu_register .mu_alert {
	background: #242628;
	border-color: #3a3d41;
}

body.dark-mode .mu_register .mu_alert {
	border-left-color: #50ae26;
	color: #e8eaed;
}

body.dark-mode .mu_register p,
body.dark-mode .mu_register label,
body.dark-mode .fg-signup-alt h2 {
	color: #e8eaed;
}

body.dark-mode .mu_register h2,
body.dark-mode .mu_register #wp-signup-username-description,
body.dark-mode .mu_register #wp-signup-email-description,
body.dark-mode .fg-signup-alt p {
	color: #9aa1a8;
}

body.dark-mode .mu_register input[type="text"],
body.dark-mode .mu_register input[type="email"] {
	background: #242628;
	border-color: #5b6167;
	color: #e8eaed;
}

body.dark-mode .mu_register .error,
body.dark-mode .mu_register p.error {
	background: #242628;
	border-color: #3a3d41;
	border-left-color: #d63638;
	color: #e57373;
}

body.dark-mode .fg-signup-alt__button {
	background: transparent;
}

body.dark-mode .fg-signup-alt__signin {
	border-top-color: #3a3d41;
}
