/* =====================================================
   PREMIUM LOGIN / REGISTER PAGE (Phase 4 + Phase 15)
   Design tokens: deep blue primary, light-grey canvas.
===================================================== */
.swauth {
	--sw-primary: #242424;
	--sw-primary-dark: #3a3a3a;
	--sw-ink: #0f172a;
	--sw-muted: #475569;
	--sw-line: #e5e7eb;
	--sw-bg: #f4f6fb;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	min-height: 70vh;
	background: var(--sw-bg);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
	margin: 24px auto;
	max-width: 1040px;
}

/* LEFT PANEL */
.swauth__aside {
	background: linear-gradient(160deg, #1a1a1a 0%, #242424 100%);
	color: #fff;
	display: flex;
	align-items: center;
}
.swauth__aside-inner { padding: 48px 44px; }
.swauth__brand { margin-bottom: 12px; }
.swauth__brand-icon { height: 88px; width: auto; display: block; }
.swauth__brand-text { font-size: 20px; font-weight: 700; color: #fff; }
.swauth__headline { font-size: 30px; line-height: 1.2; margin: 0 0 14px; color: #fff; }
.swauth__subhead { font-size: 16px; line-height: 1.6; color: #dbeafe; margin: 0 0 26px; max-width: 40ch; }
.swauth__benefits { list-style: none; margin: 0; padding: 0; }
.swauth__benefits li {
	position: relative;
	padding: 8px 0 8px 30px;
	font-size: 15px;
	color: #eff6ff;
}
.swauth__benefits li::before {
	content: "";
	position: absolute;
	left: 0; top: 12px;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* RIGHT PANEL */
.swauth__main {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 28px;
	background: #fff;
}
.swauth__card { width: 100%; max-width: 440px; }

.swauth__guest-note {
	display: grid;
	gap: 3px;
	margin-bottom: 18px;
	padding: 12px 14px;
	border: 1px solid #bfdbfe;
	border-radius: 10px;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 13px;
	line-height: 1.45;
}

.swauth__guest-note strong { font-size: 14px; }

.swauth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	background: #eef2f7;
	border-radius: 12px;
	padding: 4px;
	margin-bottom: 22px;
}
.swauth__tab {
	border: 0;
	background: transparent;
	padding: 11px 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sw-muted);
	border-radius: 9px;
	cursor: pointer;
}
.swauth__tab.is-active { background: #fff; color: var(--sw-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1); }

.swauth__alert {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 16px;
}

.swauth__divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: #94a3b8;
	font-size: 13px;
	margin: 18px 0;
}
.swauth__divider::before,
.swauth__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--sw-line);
}
.swauth__divider span { padding: 0 12px; }

.swauth__field { margin-bottom: 16px; }
.swauth__field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--sw-ink);
	margin-bottom: 6px;
}
.swauth__field input[type="email"],
.swauth__field input[type="text"],
.swauth__field input[type="password"] {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid var(--sw-line);
	border-radius: 10px;
	font-size: 15px;
	color: var(--sw-ink);
	background: #fff;
	box-sizing: border-box;
}
.swauth__field input:focus {
	outline: none;
	border-color: var(--sw-primary);
	box-shadow: 0 0 0 3px rgba(36, 36, 36, 0.15);
}
.swauth__field.has-error input { border-color: #ef4444; }

.swauth__pw { position: relative; display: flex; }
.swauth__pw input { padding-right: 64px; }
.swauth__pw-toggle {
	position: absolute;
	right: 8px; top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: var(--sw-primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 6px 8px;
}

.swauth__strength {
	height: 6px;
	border-radius: 4px;
	background: #e5e7eb;
	margin: 8px 0 4px;
	overflow: hidden;
}
.swauth__strength span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.swauth__strength[data-level="1"] span { width: 33%; background: #f59e0b; }
.swauth__strength[data-level="2"] span { width: 66%; background: #3b82f6; }
.swauth__strength[data-level="3"] span { width: 100%; background: #16a34a; }

.swauth__error { display: block; color: #b91c1c; font-size: 13px; margin-top: 5px; min-height: 1px; }

.swauth__row { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.swauth__link { color: var(--sw-primary); font-size: 13px; text-decoration: none; }
.swauth__link:hover { text-decoration: underline; }

.swauth__check {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13px;
	color: var(--sw-muted);
	margin: 4px 0 18px;
	line-height: 1.5;
}
.swauth__check input { margin-top: 2px; }

.swauth__switch { text-align: center; font-size: 14px; color: var(--sw-muted); margin: 16px 0 0; }
.swauth__switch a { color: var(--sw-primary); font-weight: 600; text-decoration: none; }

.swauth .mock-btn-primary { width: 100%; margin-top: 4px; }
.swauth .mock-btn-primary.is-loading { opacity: .65; cursor: default; }
.swauth .mock-google-login-btn.is-loading { opacity: .65; cursor: default; }

/* MOBILE — single column, form first (Phase 4 / Phase 16) */
@media (max-width: 860px) {
	.swauth {
		grid-template-columns: 1fr;
		margin: 0;
		border-radius: 0;
		box-shadow: none;
		min-height: 0;
	}
	.swauth__aside { order: 2; }
	.swauth__main { order: 1; padding: 28px 18px; }
	.swauth__aside-inner { padding: 32px 24px; }
	.swauth__headline { font-size: 24px; }
}
