/**
 * Modern login page — centered card, stacked fields, RTL-friendly
 */

.warcry-modern .wc-page-login {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding: 32px 16px 56px;
	box-sizing: border-box;
	font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .warcry-modern .wc-page-login,
html.locale-fa .warcry-modern .wc-page-login,
body.locale-fa.warcry-modern .wc-page-login {
	direction: rtl;
}

.warcry-modern .content_holder:has(.wc-page-login) {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	background: transparent !important;
}

.wc-login-shell {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	min-height: min(72vh, 640px);
	padding: 8px 0 24px;
}

.wc-login-card {
	width: 100%;
	background:
		linear-gradient(145deg, rgba(233, 172, 53, 0.08) 0%, transparent 42%),
		linear-gradient(180deg, #2a2622 0%, #141210 100%);
	border: 1px solid #4a4438;
	border-radius: 16px;
	box-shadow:
		inset 0 1px 0 rgba(255, 230, 170, 0.07),
		0 16px 48px rgba(0, 0, 0, 0.5);
	overflow: hidden;
}

.wc-login-card__head {
	padding: 28px 28px 20px;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wc-login-card__title {
	margin: 0 0 10px;
	font-size: 28px;
	font-weight: 700;
	color: #e9ac35;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
	letter-spacing: 0.02em;
}

.wc-login-card__lead {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #9a9080;
	max-width: 32em;
	margin-inline: auto;
}

.wc-login-alerts {
	margin: 0;
	padding: 14px 22px 0;
}

.wc-login-alerts .alert-box,
.wc-login-alerts .success-box {
	font-family: inherit;
	font-size: 14px;
	border-radius: 8px;
}

.wc-login-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 24px 28px 8px;
}

.wc-login-form__group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wc-login-form__group label {
	font-size: 13px;
	font-weight: 700;
	color: #c8baa0;
}

.wc-login-form__group input[type="text"],
.wc-login-form__group input[type="password"] {
	width: 100%;
	padding: 13px 16px;
	border-radius: 10px;
	border: 1px solid #5c5345;
	background: #1a1814;
	color: #e8e0d0;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wc-login-form__group input::placeholder {
	color: #6a6258;
}

.wc-login-form__group input:hover {
	border-color: #6e6454;
}

.wc-login-form__group input:focus {
	outline: none;
	border-color: #9a7b3c;
	background: #1e1b17;
	box-shadow: 0 0 0 3px rgba(233, 172, 53, 0.14);
}

.wc-login-form__options {
	padding-top: 2px;
}

.wc-login-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.wc-login-check input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wc-login-check__box {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 5px;
	border: 1px solid #5c5345;
	background: #1a1814;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.wc-login-check__box::after {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background: center/12px 10px no-repeat;
	opacity: 0;
	transition: opacity 0.12s ease;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5.2L4.2 8.4 11 1.6' stroke='%231a1408' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.wc-login-check input:checked + .wc-login-check__box {
	border-color: #c8942e;
	background: linear-gradient(180deg, #e9ac35 0%, #b8861e 100%);
	box-shadow: 0 0 0 2px rgba(233, 172, 53, 0.2);
}

.wc-login-check input:checked + .wc-login-check__box::after {
	opacity: 1;
}

.wc-login-check input:focus-visible + .wc-login-check__box {
	outline: 2px solid #e9ac35;
	outline-offset: 2px;
}

.wc-login-check__label {
	font-size: 13px;
	font-weight: 600;
	color: #b0a494;
}

.wc-login-actions {
	padding: 4px 0 8px;
}

.wc-login-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 14px 24px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(180deg, #e4b03e 0%, #a87818 100%);
	color: #1a1408;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow:
		inset 0 1px 0 rgba(255, 240, 200, 0.35),
		0 4px 16px rgba(0, 0, 0, 0.35);
	transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.wc-login-btn:hover {
	filter: brightness(1.06);
	box-shadow:
		inset 0 1px 0 rgba(255, 240, 200, 0.4),
		0 6px 22px rgba(0, 0, 0, 0.4);
}

.wc-login-btn:active {
	transform: translateY(1px);
}

.wc-login-btn:focus-visible {
	outline: 2px solid #e9ac35;
	outline-offset: 3px;
}

.wc-login-card__foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 20px 28px 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	text-align: center;
}

.wc-login-link {
	font-size: 14px;
	font-weight: 600;
	color: #c8baa0;
	text-decoration: none;
	transition: color 0.15s ease;
}

.wc-login-link:hover {
	color: #e9ac35;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wc-login-register {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #8a8274;
}

.wc-login-register a {
	margin-inline-start: 0.35em;
	font-weight: 700;
	color: #e9ac35;
	text-decoration: none;
	transition: color 0.15s ease;
}

.wc-login-register a:hover {
	color: #f2bd4b;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 480px) {
	.warcry-modern .wc-page-login {
		padding: 20px 12px 40px;
	}

	.wc-login-card__head {
		padding: 22px 20px 16px;
	}

	.wc-login-card__title {
		font-size: 24px;
	}

	.wc-login-form {
		padding: 20px 20px 6px;
	}

	.wc-login-card__foot {
		padding: 18px 20px 22px;
	}
}
