/**
 * Shared styles for the Login & Register module's shortcodes:
 * [lightweb_register], [lightweb_login], [lightweb_forgot_password],
 * [lightweb_profile].
 */

.lightweb-auth-wrap {
	max-width: 420px;
	margin: 0 auto;
}

.lightweb-auth-step {
	margin-bottom: 1em;
}

.lightweb-auth-field {
	margin-bottom: 1.1em;
}

.lightweb-auth-field label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
}

.lightweb-auth-field input[type='text'],
.lightweb-auth-field input[type='password'],
.lightweb-auth-field input[type='tel'],
.lightweb-auth-field input[type='email'] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65em 0.8em;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 1em;
}

.lightweb-auth-field input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.lightweb-auth-terms {
	font-size: 0.9em;
}

.lightweb-auth-terms label {
	font-weight: normal;
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
}

.lightweb-auth-checkbox-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2em;
	font-size: 0.92em;
}

.lightweb-auth-checkbox-row label {
	font-weight: normal;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}

.lightweb-auth-links {
	margin-top: 0.9em;
	font-size: 0.92em;
}

.lightweb-auth-profile-current {
	padding: 0.9em 1em;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	margin-bottom: 1.4em;
}

.lightweb-auth-profile h3 {
	margin-top: 0;
}

.lightweb-wc-checkout-login-notice {
	margin-bottom: 1.5em;
}

.lightweb-wc-myaccount-auth .lightweb-auth-wrap {
	margin: 0;
	max-width: none;
}

.lightweb-auth-message {
	display: none;
	padding: 0.7em 0.9em;
	border-radius: 4px;
	margin-bottom: 1em;
	font-size: 0.92em;
	line-height: 1.4;
}

.lightweb-auth-message.is-error {
	display: block;
	background: #fdeaea;
	color: #8a1f1f;
	border: 1px solid #f3c2c2;
}

.lightweb-auth-message.is-success {
	display: block;
	background: #eaf7ea;
	color: #1f6e2b;
	border: 1px solid #b9e0bb;
}

.lightweb-auth-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	vertical-align: middle;
	margin-left: 0.5em;
	animation: lightweb-auth-spin 0.7s linear infinite;
}

@keyframes lightweb-auth-spin {
	to {
		transform: rotate(360deg);
	}
}

.lightweb-auth-btn {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 0.7em 1.5em;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1em;
	line-height: 1.2;
}

.lightweb-auth-btn:hover {
	background: #195a8d;
}

.lightweb-auth-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.lightweb-auth-resend {
	display: block;
	margin-top: 0.9em;
	background: none;
	border: none;
	color: #2271b1;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
	font-size: 0.9em;
}

.lightweb-auth-resend:disabled {
	color: #999;
	text-decoration: none;
	cursor: not-allowed;
}

.lightweb-auth-notice {
	padding: 1em 1.2em;
	border-radius: 4px;
	background: #f0f0f1;
	border: 1px solid #dcdcde;
	max-width: 420px;
	margin: 0 auto;
}

/** My account page login & register form styles */

.lightweb-auth-panel {
    display: none;
}

.lightweb-auth-panel.active,
#lightweb-login-form {
    display: block;
}
span.lightweb-show-register,
span.lightweb-show-login {
    color: red;
    cursor: pointer;
}