/* ==========================================================================
   Gameodrop — sign in / create account
   ========================================================================== */

.gd-account-page .wd-page-content,
.gd-account-page .main-page-wrapper {
	padding-top: 0;
}

.gd-auth-page .page-title,
.gd-auth-page .wd-page-title {
	display: none;
}

/* ---------------------------------------------------------------- shell  */

.gd-auth {
	--auth-r: 22px;
	margin: 40px auto 70px;
	max-width: 1180px;
	padding: 0 20px;
}

.gd-auth-shell {
	display: grid;
	grid-template-columns: 1.02fr 1fr;
	border-radius: var(--auth-r);
	overflow: hidden;
	border: 1px solid var(--gd-line);
	background: linear-gradient(180deg, rgba(24, 21, 62, .8), rgba(13, 11, 34, .9));
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95),
		0 0 80px -50px rgba(123, 92, 255, .8);
}

.gd-auth--login-only .gd-auth-shell {
	grid-template-columns: 1fr 1fr;
}

/* ---------------------------------------------------------- brand panel  */

.gd-auth-aside {
	position: relative;
	isolation: isolate;
	padding: 46px 44px;
	background:
		radial-gradient(90% 70% at 8% 0%, rgba(123, 92, 255, .45) 0%, transparent 62%),
		radial-gradient(80% 60% at 100% 100%, rgba(255, 233, 74, .16) 0%, transparent 60%),
		linear-gradient(160deg, #1b1747 0%, #0a0722 100%);
	display: flex;
	align-items: center;
}

/* faint grid so the panel is not a flat wash */
.gd-auth-aside::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(80% 70% at 30% 30%, #000 20%, transparent 78%);
	-webkit-mask-image: radial-gradient(80% 70% at 30% 30%, #000 20%, transparent 78%);
}

.gd-auth-aside-inner {
	position: relative;
	width: 100%;
}

.gd-auth-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 34px;
}

.gd-auth-mark {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	color: #fff;
	background: linear-gradient(135deg, var(--gd-purple), var(--gd-purple-3));
	box-shadow: 0 10px 26px -12px rgba(123, 92, 255, .9);
}

.gd-auth-mark svg {
	width: 22px;
	height: 22px;
}

.gd-auth-wordmark {
	font-family: var(--wd-title-font, inherit);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .16em;
	color: #fff;
}

.gd-auth-claim {
	margin: 0 0 30px;
	font-size: clamp(26px, 2.6vw, 36px);
	line-height: 1.16;
	color: #fff;
	letter-spacing: -.015em;
	min-height: 2.4em;
}

.gd-auth-claim > span {
	display: none;
}

.gd-auth-claim > span.is-on {
	display: block;
}

.gd-auth-points {
	list-style: none;
	margin: 0 0 34px;
	padding: 0;
	display: grid;
	gap: 18px;
}

.gd-auth-points li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.gd-auth-points svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--gd-purple-2);
}

.gd-auth-points span {
	display: block;
	font-size: 13.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .62);
}

.gd-auth-points strong {
	display: block;
	font-family: var(--wd-title-font, inherit);
	font-size: 14.5px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 2px;
}

.gd-auth-foot {
	margin: 0;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .09);
	font-size: 13px;
	color: rgba(255, 255, 255, .45);
}

.gd-auth-foot a {
	color: var(--gd-gold);
}

/* ----------------------------------------------------------------- main  */

.gd-auth-main {
	padding: 40px 44px 46px;
	background: rgba(9, 7, 28, .55);
	display: flex;
	flex-direction: column;
}

/* tabs */
.gd-auth-tabs {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	margin-bottom: 30px;
	border-radius: 14px;
	background: rgba(0, 0, 0, .3);
	border: 1px solid var(--gd-line);
}

.gd-auth-tab {
	position: relative;
	z-index: 1;
	appearance: none;
	border: 0;
	background: none;
	cursor: pointer;
	padding: 11px 10px;
	border-radius: 10px;
	font-family: var(--wd-title-font, inherit);
	font-size: 14px;
	font-weight: 600;
	color: var(--gd-muted);
	transition: color .25s ease;
}

.gd-auth-tab[aria-selected="true"] {
	color: #fff;
}

.gd-auth-tab-glider {
	position: absolute;
	z-index: 0;
	top: 4px;
	bottom: 4px;
	left: 4px;
	width: calc(50% - 6px);
	border-radius: 10px;
	background: linear-gradient(135deg, var(--gd-purple), var(--gd-purple-3));
	box-shadow: 0 8px 22px -10px rgba(123, 92, 255, .9);
	transition: transform .38s var(--gd-ease);
}

.gd-auth.is-register .gd-auth-tab-glider {
	transform: translateX(calc(100% + 4px));
}

/* panes */
.gd-auth-pane {
	display: none;
}

.gd-auth-pane.is-on {
	display: block;
	animation: gd-auth-in .4s var(--gd-ease) both;
}

@keyframes gd-auth-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

.gd-auth-head {
	margin-bottom: 24px;
}

.gd-auth-head h1 {
	margin: 0 0 6px;
	font-size: 26px;
	line-height: 1.2;
	color: #fff;
}

.gd-auth-head p {
	margin: 0;
	font-size: 14px;
	color: var(--gd-muted);
}

/* notices */
.gd-auth-notices:empty {
	display: none;
}

.gd-auth-notices .woocommerce-error,
.gd-auth-notices .woocommerce-message,
.gd-auth-notices .woocommerce-info {
	margin: 0 0 22px;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 13.5px;
	list-style: none;
	border: 1px solid transparent;
}

.gd-auth-notices .woocommerce-error {
	background: rgba(239, 68, 68, .12);
	border-color: rgba(239, 68, 68, .38);
	color: #fecaca;
}

.gd-auth-notices .woocommerce-error li + li {
	margin-top: 6px;
}

.gd-auth-notices .woocommerce-message,
.gd-auth-notices .woocommerce-info {
	background: rgba(123, 92, 255, .12);
	border-color: rgba(123, 92, 255, .38);
	color: #ddd6fe;
}

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

.gd-form {
	display: block;
}

.gd-field {
	margin-bottom: 18px;
}

.gd-field-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.gd-field label {
	display: block;
	margin-bottom: 7px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--gd-muted);
}

.gd-field-aside {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--gd-gold) !important;
	text-transform: none;
	letter-spacing: 0;
}

.gd-input {
	position: relative;
	display: flex;
	align-items: center;
}

.gd-input-ico {
	position: absolute;
	left: 15px;
	width: 18px;
	height: 18px;
	color: #6f68a4;
	pointer-events: none;
	transition: color .2s ease;
}

/* WooCommerce wraps password inputs in <span class="password-input"> and
   injects its own reveal button. Let the input stay a flex child and keep
   only our toggle, so there is one eye and not two. */
.gd-input .password-input {
	display: contents;
}

.gd-input .show-password-input,
.gd-input .wd-show-password {
	display: none !important;
}

.gd-input input {
	width: 100%;
	height: 52px;
	padding: 0 48px 0 46px;
	border-radius: 13px;
	background: rgba(6, 4, 22, .85) !important;
	border: 1px solid var(--gd-line) !important;
	color: #fff !important;
	font-size: 15px;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.gd-input input::placeholder {
	color: #514b7d;
}

.gd-input input:focus {
	border-color: var(--gd-purple) !important;
	box-shadow: 0 0 0 4px rgba(123, 92, 255, .16) !important;
	outline: none;
}

.gd-input input:focus ~ .gd-input-ico,
.gd-input:focus-within .gd-input-ico {
	color: var(--gd-purple-2);
}

.gd-eye {
	position: absolute;
	right: 8px;
	width: 36px;
	height: 36px;
	border: 0;
	background: none;
	cursor: pointer;
	border-radius: 9px;
	display: grid;
	place-items: center;
	color: #6f68a4;
	transition: color .2s ease, background .2s ease;
}

.gd-eye::before {
	content: "";
	width: 19px;
	height: 19px;
	background-color: currentColor;
	-webkit-mask: var(--gd-eye-open) center / contain no-repeat;
	mask: var(--gd-eye-open) center / contain no-repeat;
}

.gd-eye.is-on::before {
	-webkit-mask-image: var(--gd-eye-off);
	mask-image: var(--gd-eye-off);
}

.gd-eye:hover {
	color: #fff;
	background: rgba(255, 255, 255, .06);
}

:root {
	--gd-eye-open: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
	--gd-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7c2 0 3.7.7 5.1 1.6M22 12s-3.6 7-10 7c-2 0-3.7-.7-5.1-1.6'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E");
}

.gd-hint {
	margin: 7px 0 0;
	font-size: 12.5px;
	color: #6f68a4;
}

/* a class-level display beats the UA rule for [hidden], so say it explicitly */
.gd-strength[hidden],
.gd-match[hidden] {
	display: none !important;
}

/* password strength */
.gd-strength {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 9px;
}

.gd-strength-bar {
	flex: 1 1 auto;
	height: 4px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .08);
	overflow: hidden;
}

.gd-strength-bar i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 4px;
	background: #ef4444;
	transition: width .3s var(--gd-ease), background .3s ease;
}

.gd-strength[data-level="2"] .gd-strength-bar i { background: #f59e0b; }
.gd-strength[data-level="3"] .gd-strength-bar i { background: #a48cff; }
.gd-strength[data-level="4"] .gd-strength-bar i { background: #4ade80; }

.gd-strength-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--gd-muted);
	min-width: 62px;
	text-align: right;
}

.gd-match {
	margin: 7px 0 0;
	font-size: 12.5px;
	font-weight: 600;
}

.gd-match[data-ok="1"] { color: #4ade80; }
.gd-match[data-ok="0"] { color: #f87171; }

/* checkboxes */
.gd-check {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 13.5px;
	color: rgba(255, 255, 255, .72);
	line-height: 1.5;
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
}

.gd-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.gd-check-box {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	margin-top: 1px;
	border-radius: 6px;
	border: 1.5px solid #3a3378;
	background: rgba(6, 4, 22, .8);
	position: relative;
	transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.gd-check-box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1.5px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .2s var(--gd-ease);
}

.gd-check input:checked + .gd-check-box {
	background: linear-gradient(135deg, var(--gd-purple), var(--gd-purple-3));
	border-color: transparent;
}

.gd-check input:checked + .gd-check-box::after {
	transform: rotate(45deg) scale(1);
}

.gd-check input:focus-visible + .gd-check-box {
	outline: 2px solid var(--gd-purple-2);
	outline-offset: 2px;
}

.gd-check--block {
	display: flex;
	margin-bottom: 12px;
}

.gd-check--soft .gd-check-text {
	color: var(--gd-muted);
	font-size: 12.5px;
}

.gd-check-text a {
	color: var(--gd-gold);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gd-field--consent {
	margin: 22px 0 20px;
	padding: 16px 18px;
	border-radius: 14px;
	border: 1px solid var(--gd-line);
	background: rgba(123, 92, 255, .06);
}

.gd-field--consent label {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	margin-bottom: 0;
}

.gd-row-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 4px 0 22px;
}

/* submit */
.gd-submit {
	width: 100%;
	height: 54px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0 !important;
	border-radius: 14px !important;
	background-image: linear-gradient(135deg, #7b5cff 0%, #a48cff 100%) !important;
	background-color: transparent !important;
	color: #fff !important;
	font-family: var(--wd-title-font, inherit);
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: .01em;
	cursor: pointer;
	box-shadow: 0 16px 36px -16px rgba(123, 92, 255, .95);
	transition: transform .25s var(--gd-ease), box-shadow .25s var(--gd-ease), filter .2s ease;
}

.gd-submit svg {
	width: 18px;
	height: 18px;
	transition: transform .3s var(--gd-ease);
}

.gd-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 46px -18px rgba(123, 92, 255, 1);
	color: #fff !important;
}

.gd-submit:hover svg {
	transform: translateX(4px);
}

.gd-submit[disabled] {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
}

.gd-auth-switch {
	margin: 24px 0 0;
	text-align: center;
	font-size: 13.5px;
	color: var(--gd-muted);
}

.gd-auth-switch button {
	appearance: none;
	border: 0;
	background: none;
	padding: 0 0 0 4px;
	font: inherit;
	font-weight: 600;
	color: var(--gd-gold);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gd-auth-switch button:hover {
	color: #fff;
}

/* Turnstile and the WooCommerce privacy line, dropped into our layout */
.gd-form .cf-turnstile,
.gd-form .cf-turnstile-wrapper {
	margin: 4px 0 18px;
}

.gd-form .woocommerce-privacy-policy-text {
	margin: 0 0 18px;
	font-size: 12.5px;
	line-height: 1.55;
	color: #6f68a4;
}

.gd-form .woocommerce-privacy-policy-text a {
	color: var(--gd-muted);
	text-decoration: underline;
}

/* -------------------------------------------------------- logged-in area */

.gd-account-page .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 4px;
}

.gd-account-page .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 12px 16px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 14px;
	color: rgba(255, 255, 255, .72) !important;
	border: 1px solid transparent;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--gd-ease);
}

.gd-account-page .woocommerce-MyAccount-navigation li a:hover {
	background: rgba(123, 92, 255, .12);
	color: #fff !important;
	transform: translateX(3px);
}

.gd-account-page .woocommerce-MyAccount-navigation li.is-active a {
	background: linear-gradient(135deg, rgba(123, 92, 255, .9), rgba(95, 67, 224, .9));
	color: #fff !important;
	border-color: transparent;
	box-shadow: 0 10px 26px -14px rgba(123, 92, 255, .95);
}

/* ----------------------------------------------------------- responsive  */

@media (max-width: 991px) {
	.gd-auth-shell {
		grid-template-columns: 1fr;
	}

	.gd-auth-aside {
		padding: 34px 28px;
		order: 2;
	}

	.gd-auth-claim {
		min-height: 0;
		margin-bottom: 22px;
	}

	.gd-auth-main {
		padding: 32px 28px 36px;
		order: 1;
	}
}

@media (max-width: 560px) {
	.gd-auth {
		margin: 22px auto 50px;
		padding: 0 12px;
	}

	.gd-auth-shell {
		border-radius: 18px;
	}

	.gd-auth-main {
		padding: 26px 20px 30px;
	}

	.gd-auth-aside {
		padding: 28px 20px;
	}

	.gd-auth-head h1 {
		font-size: 22px;
	}

	.gd-input input {
		height: 50px;
		font-size: 16px; /* stops iOS zooming on focus */
	}
}
