:root {
	--sw-login-bg: #050b14;
	--sw-login-panel: #0b1525;
	--sw-login-line: #263753;
	--sw-login-text: #f5f7ff;
	--sw-login-muted: #a8b4c9;
	--sw-login-purple: #8266ff;
	--sw-login-blue: #527cff;
	--sw-login-green: #49ddb0;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.sw-login-page {
	margin: 0;
	background:
		radial-gradient(circle at 14% 18%, rgba(78, 218, 176, .11), transparent 31%),
		radial-gradient(circle at 85% 78%, rgba(130, 102, 255, .16), transparent 35%),
		var(--sw-login-bg);
	color: var(--sw-login-text);
	font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sw-login-shell {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
	width: min(1180px, calc(100% - 48px));
	min-height: min(760px, calc(100vh - 48px));
	margin: 24px auto;
	overflow: hidden;
	border: 1px solid rgba(57, 78, 111, .78);
	border-radius: 28px;
	background: rgba(8, 16, 29, .88);
	box-shadow: 0 34px 110px rgba(0, 0, 0, .42);
}

.sw-login-stage {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100%;
	padding: clamp(34px, 5vw, 68px);
	overflow: hidden;
	border-right: 1px solid var(--sw-login-line);
	background: linear-gradient(145deg, rgba(15, 30, 49, .98), rgba(7, 17, 30, .96));
}

.sw-login-stage::after {
	content: "";
	position: absolute;
	right: -110px;
	bottom: -150px;
	width: 430px;
	height: 430px;
	border: 1px solid rgba(130, 102, 255, .28);
	border-radius: 50%;
	box-shadow: 0 0 0 54px rgba(130, 102, 255, .04), 0 0 0 108px rgba(73, 221, 176, .025);
}

.sw-login-brand {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 13px;
	color: var(--sw-login-text);
	font-size: 22px;
	font-weight: 850;
	letter-spacing: -.02em;
}

.sw-login-brand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 48px;
	height: 48px;
	border: 1px solid #5b4ab7;
	border-radius: 15px;
	background: #1b2450;
}
.sw-login-brand-icon i { width: 3px; border-radius: 3px; background: var(--sw-login-purple); }
.sw-login-brand-icon i:nth-child(1), .sw-login-brand-icon i:nth-child(5) { height: 10px; background: var(--sw-login-green); }
.sw-login-brand-icon i:nth-child(2), .sw-login-brand-icon i:nth-child(4) { height: 21px; }
.sw-login-brand-icon i:nth-child(3) { height: 31px; }

.sw-login-pitch { position: relative; z-index: 1; max-width: 590px; padding: 60px 0; }
.sw-login-kicker { margin: 0 0 14px; color: #80ebcc; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.sw-login-pitch h1 { margin: 0; max-width: 560px; font-size: clamp(43px, 5.7vw, 76px); font-weight: 760; letter-spacing: -.055em; line-height: .98; }
.sw-login-pitch h1 span { color: #9d8aff; }
.sw-login-pitch > p:last-of-type { max-width: 520px; margin: 22px 0 0; color: var(--sw-login-muted); font-size: clamp(16px, 1.7vw, 20px); }
.sw-login-features { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.sw-login-features span { padding: 8px 12px; border: 1px solid #344867; border-radius: 999px; background: rgba(14, 29, 49, .82); color: #d8dff0; font-size: 12px; font-weight: 750; }
.sw-login-stage-foot { position: relative; z-index: 1; color: #72819a; font-size: 12px; }

.sw-login-access {
	display: grid;
	place-items: center;
	padding: clamp(30px, 5vw, 70px);
	background: rgba(6, 13, 24, .84);
}
.sw-login-card { width: min(100%, 430px); }
.sw-login-eyebrow { margin: 0 0 8px; color: #a994ff; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.sw-login-card h2 { margin: 0; font-size: clamp(31px, 4vw, 42px); letter-spacing: -.035em; line-height: 1.05; }
.sw-login-intro { margin: 13px 0 0; color: var(--sw-login-muted); }
.sw-public-form { display: grid; gap: 16px; margin-top: 28px; }
.sw-public-form > label { display: grid; gap: 7px; color: #e9edfa; font-size: 13px; font-weight: 800; }
.sw-public-form input[type="email"], .sw-public-form input[type="password"], .sw-public-form input[type="text"] { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid #344866; border-radius: 12px; outline: 0; background: #0d1a2c; color: #fff; font: inherit; transition: border-color .18s, box-shadow .18s; }
.sw-public-form input:focus { border-color: #8067f5; box-shadow: 0 0 0 4px rgba(128, 103, 245, .15); }
.sw-password-field { position: relative; display: block; }
.sw-password-field input { padding-right: 83px !important; }
.sw-password-toggle { position: absolute; top: 50%; right: 7px; min-height: 38px; padding: 0 9px; transform: translateY(-50%); border: 0; border-radius: 8px; background: transparent; color: #bcaeff; font-weight: 800; cursor: pointer; }
.sw-public-form .sw-public-check { display: flex; align-items: center; gap: 9px; color: var(--sw-login-muted); font-size: 13px; font-weight: 600; }
.sw-public-check input { width: 19px; height: 19px; accent-color: var(--sw-login-purple); }
.sw-public-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; margin-top: 2px; border: 0; border-radius: 13px; background: linear-gradient(90deg, var(--sw-login-purple), var(--sw-login-blue)); color: #fff; font: inherit; font-weight: 900; cursor: pointer; box-shadow: 0 15px 36px rgba(82, 91, 255, .2); }
.sw-public-button:hover { filter: brightness(1.08); }
.sw-public-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; }
.sw-public-links a { color: #b9adff; font-size: 13px; font-weight: 750; text-decoration: none; }
.sw-login-note { display: flex; align-items: center; gap: 9px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #21324c; color: #7f8da3; font-size: 12px; }
.sw-login-note span { width: 8px; height: 8px; border-radius: 50%; background: var(--sw-login-green); box-shadow: 0 0 0 5px rgba(73, 221, 176, .1); }
.sw-public-error, .sw-public-success { margin: 18px 0 0; padding: 12px 14px; border-radius: 11px; font-size: 13px; font-weight: 700; }
.sw-public-error { border: 1px solid #8c3948; background: #321822; color: #ffbec9; }
.sw-public-success { border: 1px solid #27745f; background: #102d28; color: #8bf0d1; }

@media (max-width: 840px) {
	.sw-login-shell { grid-template-columns: 1fr; width: min(100% - 24px, 620px); min-height: auto; margin: 12px auto; border-radius: 22px; }
	.sw-login-stage { min-height: auto; padding: 24px; border-right: 0; border-bottom: 1px solid var(--sw-login-line); }
	.sw-login-pitch { padding: 42px 0 12px; }
	.sw-login-pitch h1 { font-size: clamp(38px, 12vw, 58px); }
	.sw-login-pitch > p:last-of-type { font-size: 16px; }
	.sw-login-stage-foot { display: none; }
	.sw-login-access { padding: 32px 24px 38px; }
}

@media (max-width: 430px) {
	.sw-login-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
	.sw-login-stage { padding: max(20px, env(safe-area-inset-top)) 20px 20px; }
	.sw-login-pitch { padding: 32px 0 5px; }
	.sw-login-pitch h1 { font-size: 39px; }
	.sw-login-pitch > p:last-of-type { margin-top: 16px; font-size: 14px; }
	.sw-login-features { margin-top: 19px; }
	.sw-login-features span:nth-child(n+4) { display: none; }
	.sw-login-access { padding: 28px 20px max(32px, env(safe-area-inset-bottom)); place-items: start center; }
	.sw-login-card h2 { font-size: 32px; }
	.sw-public-links { align-items: flex-start; flex-direction: column; gap: 10px; }
}
