/**
 * Auth0 Password Requirements accordion. v1.0.1
 * Pairs with inc/js/auth0-password-requirements.js.
 */

.ip-auth0-pwreq {
	margin: 8px 0 16px;
	border: 1px solid #d0d4d9;
	border-radius: 4px;
	background: #f7f9fb;
	font-family: inherit;
}

.ip-auth0-pwreq summary {
	cursor: pointer;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	user-select: none;
	list-style: revert; /* keep the native disclosure triangle */
}

.ip-auth0-pwreq[open] summary {
	border-bottom: 1px solid #d0d4d9;
}

.ip-auth0-pwreq ul {
	list-style: none;
	margin: 0;
	padding: 8px 12px;
}

.ip-auth0-pwreq li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	font-size: 13px;
	line-height: 1.4;
	color: #6b7280;
	transition: color 0.15s ease;
}

.ip-auth0-pwreq li.met {
	color: #16a34a;
}

.ip-auth0-pwreq-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	flex-shrink: 0;
	position: relative;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ip-auth0-pwreq li.met .ip-auth0-pwreq-icon {
	background-color: #16a34a;
	border-color: #16a34a;
}

.ip-auth0-pwreq li.met .ip-auth0-pwreq-icon::after {
	content: '';
	position: absolute;
	left: 3px;
	top: 0;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ip-auth0-pwreq-label {
	flex: 1;
}

/**
 * Suppress WooCommerce's stock password strength box and WP's hint text on
 * any form where our accordion is rendering — our list is the source of truth.
 */
.woocommerce-password-strength,
.woocommerce-password-hint {
	display: none !important;
}

/**
 * Submitting state: the form's submit button gets `is-submitting` while a
 * request is in flight to prevent double-clicks. Spinner is a CSS-only ring
 * to avoid an extra asset.
 */
.ip-auth0-submit-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: ip-auth0-spin 0.7s linear infinite;
}

@keyframes ip-auth0-spin {
	to { transform: rotate(360deg); }
}

button.ip-auth0-is-submitting,
input.ip-auth0-is-submitting {
	opacity: 0.7;
	cursor: progress;
	pointer-events: none;
}

