.auth-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.auth-modal.is-open {
	display: flex;
}

.auth-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.56);
}

.auth-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 343px;
	background: #fff;
	border-radius: 10px;
	padding: 34px 32px 28px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
}

@media only screen and (min-width: 771px) {
	.auth-modal__dialog {
		max-width: 400px;
	}
}

.auth-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	padding: 0;
	font-size: 28px;
	line-height: 1;
	color: #111;
	cursor: pointer;
}

.auth-panel {
	display: none;
}

.auth-panel.is-active {
	display: block;
}

.auth-panel__title {
	margin: 0 0 10px;
	font-size: 34px;
	line-height: 1.02;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #111;
}

.auth-panel__intro {
	margin: 0 0 22px;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #555;
}

.auth-panel__messages {
	margin: 0 0 14px;
}

.auth-panel__messages .woocommerce-error,
.auth-panel__messages .woocommerce-message,
.auth-panel__messages .woocommerce-info {
	margin: 0 0 12px;
	padding: 12px 14px;
	list-style: none;
	border-radius: 6px;
	font-size: 0.9rem;
	line-height: 1.4;
}

.auth-panel__messages .woocommerce-error {
	background: #fff1f1;
	color: #8a1f1f;
}

.auth-panel__messages .woocommerce-message,
.auth-panel__messages .woocommerce-info {
	background: #f3f3f3;
	color: #222;
}

.auth-form-row {
	margin-bottom: 16px;
}

.auth-form-row label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
}

.auth-form-row input[type="text"],
.auth-form-row input[type="email"],
.auth-form-row input[type="password"] {
	width: 100%;
	height: 50px;
	border: 1px solid #d7d7d7;
	border-radius: 6px;
	padding: 0 14px;
	background: #fff;
	font-size: 0.96rem;
	color: #111;
	outline: none;
	box-shadow: none;
	appearance: none;
	transition: border-color 0.15s ease;
}

.auth-form-row input[type="text"]:focus,
.auth-form-row input[type="email"]:focus,
.auth-form-row input[type="password"]:focus {
	border-color: #9f9f9f;
}

.auth-form__submit {
	width: 100%;
	height: 48px;
	margin-top: 6px;
	border: 0;
	border-radius: 0;
	background: #d9d9d9;
	color: #5f5f5f;
	font-size: 0.83rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease;
}

.auth-form__submit:hover {
	background: #cfcfcf;
}

.auth-panel__footer-link {
	margin-top: 14px;
}

.auth-panel__footer-link a {
	font-size: 0.9rem;
	color: #111;
	text-decoration: underline;
}

.auth-panel__switch {
	margin-top: 18px;
	font-size: 0.92rem;
	line-height: 1.45;
	color: #333;
}

.auth-panel__switch button {
	border: 0;
	background: transparent;
	padding: 0;
	font: inherit;
	font-weight: 700;
	color: #111;
	text-decoration: underline;
	cursor: pointer;
}

.auth-panel__legal {
	margin: 30px 0;
	font-size: 12px;
	line-height: 1.55;
	color: #555;
	text-align: center;
	line-height:20px;
	padding: 0 10px;
}

.auth-panel__legal a {
	color: #111;
	text-decoration: underline;
}

body.auth-modal-open {
	overflow: hidden;
}

@media (max-width: 780px) {
	.auth-modal {
		padding: 18px 12px;
	}

	.auth-modal__dialog {
		max-width: 343px;
		border-radius: 10px;
		padding: 32px 20px 24px;
	}

	.auth-modal__close {
		top: 12px;
		right: 12px;
	}

	.auth-panel__title {
		font-size: 22px;
		line-height: 0.98;
		margin-bottom: 10px;
	}

	.auth-panel__intro {
		margin-bottom: 20px;
		font-size: 0.93rem;
	}

	.auth-form-row {
		margin-bottom: 15px;
	}

	.auth-form-row input[type="text"],
	.auth-form-row input[type="email"],
	.auth-form-row input[type="password"] {
		height: 48px;
		font-size: 0.95rem;
	}

	.auth-form__submit {
		height: 46px;
		font-size: 0.8rem;
	}

	.auth-panel__switch,
	.auth-panel__footer-link a {
		font-size: 0.88rem;
	}
}
