/* ============================================================
   MGM Sign In - public forms
   Dark stone + gold, matching the game hub sub-navs. Colours hang
   off custom properties on .mgmauth-wrap so a hub page can pass a
   different accent through the shortcode without a second sheet.
   Type is sized generously on purpose - these pages get read on
   large displays where the theme default sits too small.
   ============================================================ */

.mgmauth-wrap {
	--mgmauth-accent: #caa64b;
	--mgmauth-accent-hi: #f1d98a;
	--mgmauth-accent-deep: #a6781f;
	--mgmauth-ink: #0c0d11;
	--mgmauth-ink-2: #15161c;
	--mgmauth-text: #e7e9ee;
	--mgmauth-muted: #9aa0ac;
	--mgmauth-line: rgba(202, 166, 75, 0.32);
	--mgmauth-bad: #ff6b6b;
	--mgmauth-good: #5ecb8b;

	max-width: 520px;
	margin: 0 auto;
	color: var(--mgmauth-text);
	font-size: 17px;
	line-height: 1.6;
	text-align: left;
	box-sizing: border-box;
}

.mgmauth-wrap *,
.mgmauth-wrap *::before,
.mgmauth-wrap *::after {
	box-sizing: inherit;
}

.mgmauth-card {
	background: linear-gradient(180deg, var(--mgmauth-ink-2) 0%, var(--mgmauth-ink) 100%);
	border: 1px solid var(--mgmauth-line);
	border-radius: 10px;
	padding: 38px 36px 32px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(241, 217, 138, 0.14);
}

/* The wrapper is the card, so this widens the whole thing for the account page. */
.mgmauth-card-wide {
	max-width: 720px;
}

/* ---------------------------------------------------------- header */

.mgmauth-head {
	text-align: center;
	margin-bottom: 26px;
}

.mgmauth-logo {
	display: block;
	max-width: 190px;
	height: auto;
	margin: 0 auto 18px;
}

.mgmauth-title {
	margin: 0;
	font-family: 'Cinzel', Georgia, serif;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--mgmauth-accent-hi);
	text-shadow: 0 0 22px rgba(202, 166, 75, 0.28);
}

.mgmauth-sub-text {
	margin: 10px 0 0;
	font-size: 16px;
	color: var(--mgmauth-muted);
}

.mgmauth-rule {
	display: block;
	width: 130px;
	height: 2px;
	margin: 20px auto 0;
	background: linear-gradient(90deg, transparent, var(--mgmauth-accent), transparent);
}

.mgmauth-sub {
	margin: 34px 0 16px;
	padding-top: 22px;
	border-top: 1px solid rgba(202, 166, 75, 0.18);
	font-family: 'Cinzel', Georgia, serif;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--mgmauth-accent-hi);
}

/* ----------------------------------------------------------- fields */

.mgmauth-field {
	margin: 0 0 20px;
}

.mgmauth-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--mgmauth-muted);
}

.mgmauth-wrap input[type="text"],
.mgmauth-wrap input[type="email"],
.mgmauth-wrap input[type="password"] {
	width: 100%;
	padding: 14px 16px;
	background: rgba(0, 0, 0, 0.42);
	border: 1px solid rgba(202, 166, 75, 0.26);
	border-radius: 6px;
	color: var(--mgmauth-text);
	font-size: 17px;
	line-height: 1.4;
	transition: border-color 0.18s, box-shadow 0.18s;
}

.mgmauth-wrap input[type="text"]:focus,
.mgmauth-wrap input[type="email"]:focus,
.mgmauth-wrap input[type="password"]:focus {
	outline: none;
	border-color: var(--mgmauth-accent);
	box-shadow: 0 0 0 3px rgba(202, 166, 75, 0.18);
}

.mgmauth-hint {
	display: block;
	margin-top: 7px;
	font-size: 14px;
	color: var(--mgmauth-muted);
}

/* password field with a Show toggle */

.mgmauth-pw {
	position: relative;
	display: block;
}

.mgmauth-pw input {
	padding-right: 78px !important;
}

.mgmauth-pw-toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	padding: 6px 10px;
	background: transparent;
	border: 1px solid rgba(202, 166, 75, 0.3);
	border-radius: 4px;
	color: var(--mgmauth-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.18s, border-color 0.18s;
}

.mgmauth-pw-toggle:hover,
.mgmauth-pw-toggle:focus {
	color: var(--mgmauth-accent-hi);
	border-color: var(--mgmauth-accent);
}

/* honeypot - never shown, never announced */

.mgmauth-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------- controls */

.mgmauth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.mgmauth-check {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	color: var(--mgmauth-muted);
	cursor: pointer;
}

.mgmauth-check-block {
	display: flex;
	align-items: flex-start;
	margin-bottom: 24px;
	line-height: 1.5;
}

.mgmauth-check input[type="checkbox"] {
	width: 17px;
	height: 17px;
	accent-color: var(--mgmauth-accent);
	flex: none;
	margin: 0;
}

.mgmauth-check-block input[type="checkbox"] {
	margin-top: 3px;
}

.mgmauth-btn {
	display: block;
	width: 100%;
	padding: 15px 22px;
	background: linear-gradient(180deg, var(--mgmauth-accent-hi) 0%, var(--mgmauth-accent) 52%, var(--mgmauth-accent-deep) 100%);
	border: 1px solid var(--mgmauth-accent-deep);
	border-radius: 6px;
	color: #16120a;
	font-family: 'Cinzel', Georgia, serif;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.18s, transform 0.12s, box-shadow 0.18s;
}

.mgmauth-btn:hover,
.mgmauth-btn:focus {
	filter: brightness(1.1);
	box-shadow: 0 0 22px rgba(202, 166, 75, 0.32);
	color: #16120a;
}

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

.mgmauth-btn[disabled] {
	opacity: 0.6;
	cursor: default;
	filter: none;
}

.mgmauth-btn-link {
	width: auto;
	display: inline-block;
}

.mgmauth-link {
	color: var(--mgmauth-accent-hi);
	text-decoration: none;
	border-bottom: 1px solid rgba(241, 217, 138, 0.32);
	transition: color 0.18s, border-color 0.18s;
}

.mgmauth-link:hover,
.mgmauth-link:focus {
	color: #fff3d0;
	border-color: var(--mgmauth-accent);
}

.mgmauth-foot {
	margin: 22px 0 0;
	text-align: center;
	font-size: 16px;
	color: var(--mgmauth-muted);
}

/* --------------------------------------------------------- messages */

.mgmauth-msg {
	margin: 0 0 22px;
	padding: 14px 16px;
	border-radius: 6px;
	border-left: 3px solid;
	font-size: 16px;
	line-height: 1.5;
}

.mgmauth-msg-bad {
	background: rgba(255, 107, 107, 0.1);
	border-color: var(--mgmauth-bad);
	color: #ffc9c9;
}

.mgmauth-msg-good {
	background: rgba(94, 203, 139, 0.1);
	border-color: var(--mgmauth-good);
	color: #bdf0d3;
}

/* ------------------------------------------------------ account meta */

.mgmauth-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 16px;
	padding: 20px;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(202, 166, 75, 0.16);
	border-radius: 8px;
}

.mgmauth-meta-k {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--mgmauth-muted);
	margin-bottom: 5px;
}

.mgmauth-meta-v {
	display: block;
	font-size: 17px;
	color: var(--mgmauth-text);
}

/* ------------------------------------------------------------ mobile */

@media (max-width: 560px) {
	.mgmauth-card {
		padding: 28px 20px 24px;
	}

	.mgmauth-title {
		font-size: 24px;
	}

	.mgmauth-row {
		flex-direction: column;
		align-items: flex-start;
	}
}
