/*
 * Branded sign-in, sign-up and password-reset pages (branded-login-otp cycle-02).
 * Built to the approved mockup: .loopcycle/design-mockups/2026-10-20-branded-login/index.html
 * Every rule is scoped under .wcse-auth so the rest of the site is untouched.
 */
.wcse-auth {
	--wcse-blue: #426F92;
	--wcse-navy: #003058;
	--wcse-coral: #E8927C;
	--wcse-bg: #f2f2f2;
	--wcse-card: #ffffff;
	--wcse-text: #343434;
	--wcse-muted: #5f6a73;
	--wcse-line: #c6d4de;
	--wcse-field: #fbfbfb;
	--wcse-ok: #2f7d4f;
	--wcse-warn-bg: #fff6e8;
	--wcse-warn-line: #e9c58a;
	--wcse-err: #b3392b;
	--wcse-err-bg: #fdecea;
	--wcse-err-line: #f1b6ae;
	--wcse-info-bg: #eaf1f7;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 40px 16px 56px;
	background: linear-gradient(180deg, #e9eef3 0, var(--wcse-bg) 220px);
	color: var(--wcse-text);
	font: 400 15px/1.55 'Open Sans', Arial, sans-serif;
}

.wcse-auth *,
.wcse-auth *::before,
.wcse-auth *::after {
	box-sizing: border-box;
}

/* Porto's wide layout row has negative side margins that overflow a phone viewport by 15 px;
   neutralise them only around a branded card. */
.main-content-wrap.row:has(.wcse-auth) {
	margin-left: 0;
	margin-right: 0;
}

.wcse-auth--embedded {
	padding: 28px 0 40px;
	background: transparent;
}

.wcse-auth .wcse-card {
	max-width: 400px;
	margin: 0 auto;
	padding: 28px 26px 24px;
	border-radius: 10px;
	background: var(--wcse-card);
	box-shadow: 0 6px 24px rgba(0, 48, 88, .10);
}

.wcse-auth .wcse-brand {
	margin: 0 0 18px;
	line-height: 0;
	text-align: center;
}

/* cycle-07 P5: sized by width (about 200 px; 170 px under 480 px), height from the image's own ratio.
   The img's width/height attributes (300 x 124, the logo's pixel size) reserve that ratio before it
   loads, so nothing shifts. */
.wcse-auth .wcse-logo {
	display: inline-block;
	width: 200px;
	max-width: 100%;
	height: auto;
}

.wcse-auth .wcse-wordmark {
	line-height: 1.55;
	color: var(--wcse-navy);
	font-weight: 700;
	letter-spacing: .02em;
}

/* Registered mark: raised and small without opening up the line height. */
.wcse-auth sup {
	font-size: .6em;
	line-height: 0;
	vertical-align: super;
}

.wcse-auth .wcse-title {
	margin: 0 0 6px;
	padding: 0;
	color: var(--wcse-navy);
	font: 700 22px/1.3 'Open Sans', Arial, sans-serif;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
}

.wcse-auth .wcse-sub {
	margin: 0 0 20px;
	color: var(--wcse-muted);
	font-size: 14px;
	text-align: center;
}

.wcse-auth .wcse-sub strong {
	color: var(--wcse-text);
	overflow-wrap: anywhere;
}

.wcse-auth label,
.wcse-auth .wcse-label {
	display: block;
	margin: 14px 0 6px;
	color: var(--wcse-navy);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.wcse-auth input[type="text"],
.wcse-auth input[type="email"],
.wcse-auth input[type="password"] {
	display: block;
	width: 100%;
	max-width: none;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--wcse-line);
	border-radius: 6px;
	background: var(--wcse-field);
	color: var(--wcse-text);
	font: 400 15px/1.2 'Open Sans', Arial, sans-serif;
	box-shadow: none;
}

.wcse-auth input:focus,
.wcse-auth button:focus-visible,
.wcse-auth a:focus-visible {
	outline: 2px solid var(--wcse-blue);
	outline-offset: 1px;
}

.wcse-auth input[type="text"]:focus,
.wcse-auth input[type="email"]:focus,
.wcse-auth input[type="password"]:focus {
	background: #fff;
}

.wcse-auth input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	flex: 0 0 auto;
	accent-color: var(--wcse-blue);
}

.wcse-auth a,
.wcse-auth .wcse-link {
	color: var(--wcse-blue);
	font-weight: 600;
	text-decoration: none;
}

.wcse-auth a:hover,
.wcse-auth .wcse-link:hover {
	color: var(--wcse-navy);
	text-decoration: underline;
}

.wcse-auth .wcse-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
	font-size: 13px;
}

.wcse-auth .wcse-row form {
	margin: 0;
}

.wcse-auth .wcse-inline,
.wcse-auth .wcse-remember,
.wcse-auth .wcse-check {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0;
	color: var(--wcse-text);
	font-size: 13px;
	font-weight: 400;
}

.wcse-auth .wcse-remember {
	margin-top: 16px;
}

.wcse-auth .wcse-check {
	margin-top: 14px;
}

.wcse-auth .wcse-btn,
.wcse-auth button.wcse-btn,
.wcse-auth a.wcse-btn {
	display: block;
	width: 100%;
	height: 46px;
	margin: 20px 0 0;
	padding: 0 16px;
	border: 0;
	border-radius: 6px;
	background: var(--wcse-blue);
	color: #fff;
	font: 700 15px/46px 'Open Sans', Arial, sans-serif;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.wcse-auth .wcse-btn:hover,
.wcse-auth a.wcse-btn:hover {
	background: var(--wcse-navy);
	color: #fff;
	text-decoration: none;
}

.wcse-auth .wcse-btn[disabled],
.wcse-auth .wcse-btn.disabled {
	opacity: .55;
	cursor: not-allowed;
}

.wcse-auth .wcse-btn--ghost,
.wcse-auth a.wcse-btn--ghost {
	margin-top: 10px;
	border: 1px solid var(--wcse-line);
	background: transparent;
	color: var(--wcse-blue);
	line-height: 44px;
}

.wcse-auth .wcse-btn--ghost:hover,
.wcse-auth a.wcse-btn--ghost:hover {
	background: var(--wcse-info-bg);
	color: var(--wcse-navy);
}

.wcse-auth .wcse-linkbtn {
	display: inline;
	width: auto;
	height: auto;
	margin: 0;
	padding: 2px 0;
	border: 0;
	background: none;
	color: var(--wcse-blue);
	font: 600 13px/1.4 'Open Sans', Arial, sans-serif;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none;
}

.wcse-auth .wcse-linkbtn:hover {
	color: var(--wcse-navy);
	text-decoration: underline;
	background: none;
}

.wcse-auth .wcse-linkbtn[disabled] {
	color: var(--wcse-muted);
	font-weight: 400;
	text-decoration: none;
	cursor: default;
}

.wcse-auth .wcse-divider {
	margin: 18px 0 0;
	color: var(--wcse-muted);
	font-size: 13px;
	text-align: center;
}

.wcse-auth .wcse-note {
	margin: 14px 0 0;
	color: var(--wcse-muted);
	font-size: 12px;
	text-align: center;
}

.wcse-auth .wcse-hint {
	margin: 6px 0 0;
	color: var(--wcse-muted);
	font-size: 12px;
}

/* cycle-07 P4: show/hide password button, inside the field box at the right (login.js adds it).
   44 x 44 px: the field's full height, a phone-sized touch target. */
.wcse-auth .wcse-pass {
	position: relative;
}

.wcse-auth .wcse-pass.has-toggle input {
	padding-right: 48px;
}

/* One toggle per field: no browser-native reveal button, and never WooCommerce's own if it adds one. */
.wcse-auth .wcse-pass input::-ms-reveal,
.wcse-auth .wcse-pass input::-ms-clear {
	display: none;
}

.wcse-auth .wcse-pass .show-password-input {
	display: none !important;
}

.wcse-auth .wcse-pass button.wcse-pass-toggle {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	min-width: 0;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 6px 6px 0;
	background: transparent;
	color: var(--wcse-muted);
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.wcse-auth .wcse-pass button.wcse-pass-toggle:hover {
	background: transparent;
	color: var(--wcse-navy);
}

.wcse-auth .wcse-pass button.wcse-pass-toggle:focus-visible {
	outline: 2px solid var(--wcse-blue);
	outline-offset: -4px;
	border-radius: 6px;
}

.wcse-auth .wcse-pass-toggle svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.wcse-auth .wcse-pass-toggle .wcse-eye-off,
.wcse-auth .wcse-pass-toggle[aria-pressed="true"] .wcse-eye {
	display: none;
}

.wcse-auth .wcse-pass-toggle[aria-pressed="true"] .wcse-eye-off {
	display: block;
}

/* Messages */
.wcse-auth .wcse-login-error,
.wcse-auth .wcse-login-notice,
.wcse-auth .wcse-alert {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid var(--wcse-err-line);
	border-radius: 6px;
	background: var(--wcse-err-bg);
	color: var(--wcse-err);
	font-size: 14px;
	line-height: 1.5;
}

.wcse-auth .wcse-login-error[data-wcse-error="reset_required"] {
	border-color: var(--wcse-warn-line);
	background: var(--wcse-warn-bg);
	color: var(--wcse-text);
}

.wcse-auth .wcse-login-notice,
.wcse-auth .wcse-alert--info {
	border-color: var(--wcse-line);
	background: var(--wcse-info-bg);
	color: var(--wcse-navy);
}

/* WooCommerce notices rendered inside a card. */
.wcse-auth .woocommerce-notices-wrapper:empty {
	display: none;
}

.wcse-auth .woocommerce-error,
.wcse-auth .woocommerce-message,
.wcse-auth .woocommerce-info {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid var(--wcse-line);
	border-radius: 6px;
	background: var(--wcse-info-bg);
	color: var(--wcse-navy);
	font-size: 14px;
	list-style: none;
}

.wcse-auth .woocommerce-error {
	border-color: var(--wcse-err-line);
	background: var(--wcse-err-bg);
	color: var(--wcse-err);
}

.wcse-auth .woocommerce-error::before,
.wcse-auth .woocommerce-message::before,
.wcse-auth .woocommerce-info::before {
	display: none;
}

/* Sign-up step indicator */
.wcse-auth .wcse-steps {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.wcse-auth .wcse-steps span {
	width: 28px;
	height: 4px;
	border-radius: 2px;
	background: var(--wcse-line);
}

.wcse-auth .wcse-steps span.is-on {
	background: var(--wcse-coral);
}

.wcse-auth .wcse-two {
	display: flex;
	gap: 10px;
}

.wcse-auth .wcse-two > div {
	flex: 1 1 0;
	min-width: 0;
}

/* 6-digit code. Without JavaScript the single field is shown as is; login.js adds the six cells
   (aria-hidden) and keeps the real field on top of them, so focus, typing, paste and screen
   readers all stay on one ordinary input. */
.wcse-auth .wcse-otp {
	position: relative;
	margin: 8px auto 4px;
}

.wcse-auth .wcse-otp input.wcse-otp-input {
	height: 54px;
	font: 700 22px/1 'Courier New', Courier, monospace;
	letter-spacing: 10px;
	text-align: center;
}

.wcse-auth .wcse-otp.is-enhanced {
	width: 316px;
	max-width: 100%;
}

.wcse-auth .wcse-otp-cells {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.wcse-auth .wcse-otp-cell {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 54px;
	border: 1px solid var(--wcse-line);
	border-radius: 6px;
	background: var(--wcse-field);
	color: var(--wcse-text);
	font: 700 22px/1 'Open Sans', Arial, sans-serif;
}

.wcse-auth .wcse-otp-cell.is-filled {
	background: #fff;
}

.wcse-auth .wcse-otp-cell.is-active {
	border-color: var(--wcse-blue);
	box-shadow: 0 0 0 2px var(--wcse-blue);
	background: #fff;
}

.wcse-auth .wcse-otp.is-enhanced input.wcse-otp-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: transparent;
	caret-color: transparent;
	letter-spacing: 0;
	box-shadow: none;
	outline: none;
	cursor: text;
}

.wcse-auth .wcse-otp.is-enhanced input.wcse-otp-input::selection {
	background: transparent;
}

/* Turnstile and the honeypot */
.wcse-auth .wcse-turnstile {
	min-height: 65px;
	margin-top: 16px;
}

/* cycle-05: the code step's help line and the Turnstile "checking" note */
.wcse-auth .wcse-code-help {
	margin: -8px 0 18px;
}

.wcse-auth .wcse-turnstile-wait {
	margin: 8px 0 0;
}

.wcse-auth .wcse-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.wcse-auth .wcse-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

/* WooCommerce strength meter (register and reset) */
.wcse-auth .woocommerce-password-strength {
	margin-top: 8px;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-align: left;
}

.wcse-auth .woocommerce-password-strength.short,
.wcse-auth .woocommerce-password-strength.bad {
	background: var(--wcse-err-bg);
	color: var(--wcse-err);
}

.wcse-auth .woocommerce-password-strength.good {
	background: var(--wcse-warn-bg);
	color: var(--wcse-text);
}

.wcse-auth .woocommerce-password-strength.strong {
	background: #e7f3ec;
	color: var(--wcse-ok);
}

.wcse-auth .woocommerce-password-hint {
	display: block;
	margin-top: 6px;
	color: var(--wcse-muted);
	font-size: 12px;
}

.wcse-auth form {
	margin: 0;
}

.wcse-auth p {
	margin-bottom: 0;
}

@media (max-width: 479px) {
	.wcse-auth .wcse-logo {
		width: 170px;
	}

	.wcse-auth .wcse-brand {
		margin-bottom: 16px;
	}
}

@media (max-width: 420px) {
	.wcse-auth {
		padding: 24px 12px 40px;
	}

	.wcse-auth .wcse-card {
		padding: 22px 16px;
	}

	.wcse-auth .wcse-otp.is-enhanced {
		width: 270px;
	}

	.wcse-auth .wcse-otp-cells {
		gap: 6px;
	}

	.wcse-auth .wcse-otp-cell {
		width: 40px;
		height: 50px;
	}

	.wcse-auth .wcse-two {
		flex-direction: column;
		gap: 0;
	}
}
