/**
 * WooCommerce Login — common widget CSS.
 *
 * @package captain-widgets-kit
 * @since   1.4.0
 */

.captwiki-login__inner {
	box-sizing: border-box;
}

.captwiki-login__title {
	margin: 0 0 18px;
	line-height: 1.3;
}

/* WooCommerce form normalisation. */
.captwiki-login .woocommerce-form-row,
.captwiki-login .form-row {
	margin: 0 0 16px;
	display: flex;
	flex-direction: column;
}

.captwiki-login label {
	margin-bottom: 6px;
	font-weight: 500;
}

.captwiki-login input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]) {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.captwiki-login input:focus {
	border-color: #2563eb;
	outline: none;
}

.captwiki-login .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}

.captwiki-login .woocommerce-form-login__rememberme input {
	width: auto;
}

.captwiki-login .button,
.captwiki-login button[type="submit"],
.captwiki-login .woocommerce-form-login__submit {
	cursor: pointer;
	border: none;
}

.captwiki-login .lost_password {
	margin-top: 10px;
	font-size: 0.9em;
}

/* Logged-in welcome. */
.captwiki-login__welcome {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.captwiki-login__welcome-text {
	margin: 0;
	font-weight: 600;
}

.captwiki-login__logout {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 8px;
	background: #111827;
	color: #fff;
	text-decoration: none;
}

/* Login + Register two-column layout. */
.captwiki-login--duo .u-columns,
.captwiki-login--duo .woocommerce > .u-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

@media ( max-width: 600px ) {
	.captwiki-login--duo .u-columns,
	.captwiki-login--duo .woocommerce > .u-columns {
		grid-template-columns: 1fr;
	}
}

/* Editor notice. */
.captwiki-login--notice {
	display: block;
	padding: 14px 16px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	background: #f6f7f7;
	color: #50575e;
	text-align: center;
	font-size: 13px;
}

.captwiki-login--notice p {
	margin: 0;
}
