/*
 * WarrantyGuard Auth styles (login + register)
 * ----------------------------------------------------------------- */

.wg-body--auth .wg-header,
.wg-body--auth .wg-mobile-menu,
.wg-body--auth .wg-footer {
	display: none !important;
}
.wg-body--auth {
	background: var(--wg-bg-section);
}
.wg-body--auth .wg-main {
	min-height: 100vh;
}

.wg-auth {
	position: relative;
	min-height: 100vh;
	padding: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.wg-auth__container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 980px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--wg-bg);
	border: 1px solid var(--wg-border);
	border-radius: var(--wg-radius-xl);
	box-shadow: var(--wg-shadow-lg);
	overflow: hidden;
}

.wg-auth__card {
	padding: clamp(2rem, 4vw, 3rem);
	display: flex;
	flex-direction: column;
}

.wg-auth__logo {
	margin-bottom: 2rem;
}

/* ===== Tabs ===== */
.wg-auth__tabs {
	display: flex;
	gap: 0.25rem;
	padding: 0.25rem;
	background: var(--wg-bg-section);
	border-radius: 999px;
	margin-bottom: 1.75rem;
}
.wg-auth__tab {
	flex: 1;
	padding: 0.625rem 1rem;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wg-fg-muted);
	border-radius: 999px;
	transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}
.wg-auth__tab:hover {
	color: var(--wg-fg);
}
.wg-auth__tab.is-active {
	background: var(--wg-bg);
	color: var(--wg-fg);
	box-shadow: var(--wg-shadow-sm);
}

/* ===== Error banner ===== */
.wg-auth__error {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.875rem 1rem;
	margin-bottom: 1.25rem;
	background: rgba(239, 68, 68, 0.08);
	border: 1px solid rgba(239, 68, 68, 0.25);
	border-radius: var(--wg-radius-md);
	color: var(--wg-danger);
	font-size: 0.875rem;
}
.wg-auth__error svg { flex: none; }

/* ===== Form ===== */
.wg-auth__form {
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
}

.wg-field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.wg-field__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wg-fg);
	letter-spacing: 0.01em;
}

.wg-field__input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.wg-field__icon {
	position: absolute;
	left: 1rem;
	color: var(--wg-fg-subtle);
	pointer-events: none;
	display: flex;
}
.wg-field__input {
	width: 100%;
	padding: 0.875rem 1rem 0.875rem 2.875rem;
	background: var(--wg-bg);
	border: 1px solid var(--wg-border-strong);
	border-radius: var(--wg-radius-md);
	font: inherit;
	font-size: 0.9375rem;
	color: var(--wg-fg);
	transition: border-color 0.18s, box-shadow 0.18s;
}
.wg-field__input::placeholder {
	color: var(--wg-fg-subtle);
}
.wg-field__input:focus {
	outline: none;
	border-color: var(--wg-brand-1);
	box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.1);
}

.wg-field__toggle {
	position: absolute;
	right: 0.5rem;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	background: transparent;
	border: none;
	border-radius: 999px;
	color: var(--wg-fg-muted);
	cursor: pointer;
	transition: color 0.18s, background 0.18s;
}
.wg-field__toggle:hover {
	color: var(--wg-fg);
	background: var(--wg-bg-section);
}
.wg-field__hint {
	font-size: 0.75rem;
	color: var(--wg-fg-muted);
	margin: 0.25rem 0 0;
}

/* ===== Password strength meter ===== */
.wg-strength {
	height: 4px;
	background: var(--wg-bg-section);
	border-radius: 999px;
	overflow: hidden;
	margin-top: 0.5rem;
}
.wg-strength__bar {
	height: 100%;
	width: 0;
	background: var(--wg-fg-subtle);
	border-radius: 999px;
	transition: width 0.3s var(--wg-ease-snappy), background 0.3s var(--wg-ease-smooth);
}
.wg-strength[data-strength="weak"]   .wg-strength__bar { width: 33%; background: var(--wg-danger); }
.wg-strength[data-strength="fair"]   .wg-strength__bar { width: 66%; background: var(--wg-warning); }
.wg-strength[data-strength="strong"] .wg-strength__bar { width: 100%; background: var(--wg-success); }

/* ===== Row ===== */
.wg-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.wg-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--wg-fg-muted);
	cursor: pointer;
	user-select: none;
}
.wg-checkbox input {
	width: 16px;
	height: 16px;
	accent-color: var(--wg-brand-1);
	cursor: pointer;
}
.wg-auth__forgot {
	font-size: 0.875rem;
	color: var(--wg-fg-muted);
}
.wg-auth__forgot:hover {
	color: var(--wg-accent);
}

/* ===== Switch text ===== */
.wg-auth__switch {
	margin: 1.5rem 0 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--wg-fg-muted);
}
.wg-auth__switch a {
	color: var(--wg-accent);
	font-weight: 600;
	margin-left: 0.25rem;
}

.wg-auth__legal {
	margin: 0.75rem 0 0;
	font-size: 0.75rem;
	color: var(--wg-fg-subtle);
	text-align: center;
	line-height: 1.5;
}
.wg-auth__legal a { color: var(--wg-fg-muted); text-decoration: underline; }

/* ===== Aside (right panel) ===== */
.wg-auth__aside {
	position: relative;
	padding: clamp(2rem, 4vw, 3rem);
	background: linear-gradient(135deg, var(--wg-brand-1) 0%, var(--wg-brand-3) 50%, var(--wg-brand-4) 100%);
	color: white;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.wg-auth__aside::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(255,255,255,0.14) 0%, transparent 50%);
	pointer-events: none;
}
.wg-auth__aside-content {
	position: relative;
	z-index: 1;
}

.wg-auth__bullets {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}
.wg-auth__bullets li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: rgba(255, 255, 255, 0.95);
	font-size: 0.9375rem;
}
.wg-auth__bullets li svg {
	flex: none;
	color: white;
}

@media (max-width: 760px) {
	.wg-auth__container {
		grid-template-columns: 1fr;
	}
	.wg-auth__aside {
		display: none;
	}
}
