/* Auth pages (register / login / password remind) - modern UI
   Separate file to bypass nginx open_file_cache issues (new filename). */

.mgAuthPage {
	max-width: 980px;
	margin: 10px auto 24px;
	padding: 0 12px;
	font-family: 'Montserrat', Arial, sans-serif;
}

.mgAuthHeader {
	margin: 6px 0 14px;
}

.mgAuthH1 {
	font-size: 18px;
	font-weight: 900;
	letter-spacing: 0.01em;
	color: #111827;
}

.mgAuthGrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.mgCard {
	background: #fff;
	border: 1px solid #ececf0;
	border-radius: 14px;
	box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
	padding: 16px;
	position: relative;
	overflow: hidden;
}

.mgCard--wide {
	margin-top: 16px;
}

.mgCardTitle {
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #111827;
	margin-bottom: 10px;
}

.mgAuthForm {
	display: grid;
	gap: 10px;
}

.mgField {
	display: grid;
	gap: 6px;
}

.mgLabel {
	font-size: 12px;
	font-weight: 800;
	color: #111827;
	opacity: 0.9;
}

.mgInput,
.mgLegacyForm input[type="text"],
.mgLegacyForm input[type="password"],
.mgLegacyForm textarea,
.mgLegacyForm select {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 520px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid #d9dbe3;
	background: #fff;
	color: #111827;
	font-size: 13px;
	font-family: inherit;
}

.mgLegacyForm textarea {
	max-width: 640px;
}

.mgInput:focus,
.mgLegacyForm input[type="text"]:focus,
.mgLegacyForm input[type="password"]:focus,
.mgLegacyForm textarea:focus,
.mgLegacyForm select:focus {
	outline: none;
	border-color: #bfc3cf;
	box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.mgButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 12px;
	background: #111827;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 900;
	font-size: 13px;
	letter-spacing: 0.01em;
	border: 0;
	cursor: pointer;
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
	box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
	width: fit-content;
}

.mgButton:hover {
	background: #0b1220;
	transform: translateY(-1px);
	box-shadow: 0 16px 28px rgba(17, 24, 39, 0.22);
}

.mgButton--secondary {
	background: #374151;
}

.mgButton--secondary:hover {
	background: #1f2937;
}

.mgAuthActions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.mgAlert {
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 13px;
	margin: 10px 0;
	border: 1px solid #e7e7ea;
	background: #f7f7fa;
	color: #111827;
}

.mgAlert--ok {
	border-color: rgba(16, 185, 129, 0.25);
	background: rgba(16, 185, 129, 0.10);
}

.mgAlert--error {
	border-color: rgba(239, 68, 68, 0.25);
	background: rgba(239, 68, 68, 0.10);
}

.mgAlert--info {
	border-color: rgba(59, 130, 246, 0.25);
	background: rgba(59, 130, 246, 0.10);
}

/* Legacy register table: keep structure, remove old "orange" feel */
.mgLegacyTable {
	width: 100%;
	max-width: 760px;
}

.mgLegacyTable td {
	padding: 6px 8px;
	vertical-align: middle;
}

.mgLegacyTable td:first-child {
	width: 46%;
	text-align: right;
	color: #111827;
	opacity: 0.9;
	font-weight: 700;
}

.mgLegacyForm .button_like_small,
.mgLegacyForm .button_like_small_disabled {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 10px 14px !important;
	border-radius: 12px !important;
	background: #111827 !important;
	border: 0 !important;
	height: auto !important;
	line-height: 1 !important;
	font-weight: 900 !important;
	box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18) !important;
}

.mgLegacyForm .button_like_small_disabled {
	opacity: 0.55 !important;
	filter: grayscale(0.2);
}

.mgLegacyForm a {
	color: #111827;
	text-decoration: underline;
}

@media (max-width: 900px) {
	.mgAuthGrid { grid-template-columns: 1fr; }
	.mgLegacyTable td:first-child { width: auto; text-align: left; padding-bottom: 2px; }
	.mgLegacyTable td { display: block; padding: 4px 0; }
}


