/**
 * Trang đăng nhập / đăng ký MMO.
 */

.mmo-auth {
	box-sizing: border-box;
	padding: 2rem 1rem;
	min-height: 28rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mmo-auth *,
.mmo-auth *::before,
.mmo-auth *::after {
	box-sizing: inherit;
}

.mmo-auth__card {
	width: 100%;
	max-width: 920px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

@media (max-width: 768px) {
	.mmo-auth__card {
		grid-template-columns: 1fr;
		max-width: 420px;
	}
}

.mmo-auth__brand {
	padding: 2.25rem 2rem;
	background: linear-gradient(145deg, #1e293b 0%, #0f172a 55%, #1e3a5f 100%);
	color: #f1f5f9;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
}

@media (max-width: 768px) {
	.mmo-auth__brand {
		padding: 1.5rem 1.25rem;
	}
}

.mmo-auth__brand-link {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: inherit;
	text-decoration: none;
}

.mmo-auth__brand-link:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.mmo-auth__brand-tagline {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	opacity: 0.88;
}

.mmo-auth__main {
	padding: 2rem 2rem 2.25rem;
}

@media (max-width: 768px) {
	.mmo-auth__main {
		padding: 1.5rem 1.25rem 2rem;
	}
}

.mmo-auth__alert {
	margin: 0 0 1rem;
	padding: 0.75rem 0.9rem;
	border-radius: 8px;
	font-size: 0.9rem;
	line-height: 1.45;
}

.mmo-auth__alert--error {
	background: rgba(220, 38, 38, 0.1);
	color: #b91c1c;
	border: 1px solid rgba(220, 38, 38, 0.2);
}

.mmo-auth__tabs {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 1.35rem;
	padding: 0.2rem;
	background: rgba(15, 23, 42, 0.06);
	border-radius: 10px;
}

.mmo-auth__tab {
	flex: 1;
	border: none;
	background: transparent;
	padding: 0.55rem 0.75rem;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	border-radius: 8px;
	color: #64748b;
	transition: background 0.15s ease, color 0.15s ease;
}

.mmo-auth__tab:hover {
	color: #334155;
}

.mmo-auth__tab.is-active {
	background: #fff;
	color: #0f172a;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.mmo-auth__panel[hidden] {
	display: none !important;
}

.mmo-auth__form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.mmo-auth__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.mmo-auth__label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #334155;
}

.mmo-auth__input {
	width: 100%;
	padding: 0.65rem 0.8rem;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 8px;
	font-size: 1rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mmo-auth__input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.mmo-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	font-size: 0.88rem;
}

.mmo-auth__check {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	cursor: pointer;
	color: #475569;
}

.mmo-auth__check input {
	margin: 0;
}

.mmo-auth__link {
	color: #2563eb;
	text-decoration: none;
	white-space: nowrap;
}

.mmo-auth__link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mmo-auth__hint {
	margin: -0.25rem 0 0;
	font-size: 0.82rem;
	color: #64748b;
}

.mmo-auth__submit {
	margin-top: 0.35rem;
	width: 100%;
	padding: 0.75rem 1rem;
	border: none;
	border-radius: 8px;
	background: linear-gradient(165deg, #2563eb 0%, #1d4ed8 100%);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.08s ease;
}

.mmo-auth__submit:hover {
	filter: brightness(1.05);
}

.mmo-auth__submit:active {
	transform: scale(0.99);
}
