/* SmartPMS — Aurora login */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; min-height: 100dvh; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
	background: radial-gradient(ellipse at top, #1A1E3F 0%, #0B1230 60%, #060B23 100%);
	color: #E8ECFF;
	overflow-x: hidden;
	position: relative;
}
/* Aurora glow blobs using brand colours */
body::before, body::after {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}
body::before {
	background:
		radial-gradient(600px circle at 12% 18%, rgba(252, 60, 58, 0.22), transparent 60%),
		radial-gradient(700px circle at 88% 24%, rgba(14, 163, 216, 0.20), transparent 60%),
		radial-gradient(800px circle at 22% 82%, rgba(77, 189, 116, 0.18), transparent 60%),
		radial-gradient(500px circle at 78% 88%, rgba(255, 148, 50, 0.16), transparent 60%);
	filter: blur(20px);
}
body::after {
	background:
		radial-gradient(2px 2px at 15% 30%, rgba(255,255,255,0.45) 0, transparent 50%),
		radial-gradient(1.5px 1.5px at 75% 60%, rgba(255,255,255,0.35) 0, transparent 50%),
		radial-gradient(2px 2px at 45% 75%, rgba(255,255,255,0.30) 0, transparent 50%),
		radial-gradient(1.5px 1.5px at 90% 15%, rgba(255,255,255,0.30) 0, transparent 50%),
		radial-gradient(1.5px 1.5px at 5% 85%, rgba(255,255,255,0.25) 0, transparent 50%);
}

.shell {
	position: relative; z-index: 1;
	min-height: 100vh; min-height: 100dvh;
	display: grid; grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	padding: max(48px, env(safe-area-inset-top)) max(80px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(80px, env(safe-area-inset-left));
	gap: 80px;
}

.brand-row { display: flex; align-items: center; gap: 18px; margin-bottom: 48px; }
.brand-row img { height: 68px; width: auto; display: block; }
.brand-tag {
	font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
	color: rgba(232,236,255,0.6);
	border-left: 1px solid rgba(232,236,255,0.18);
	padding-left: 16px; line-height: 1.4; max-width: 160px;
}

.left { padding-top: 16px; }
.eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(232,236,255,0.55); margin-bottom: 18px; }
.headline { font-size: 56px; font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 22px 0; }
.headline .grad { background: linear-gradient(90deg, #4DBD74, #0EA3D8, #FF9432); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: rgba(232,236,255,0.65); font-size: 17px; line-height: 1.55; max-width: 520px; margin: 0 0 48px 0; }

/* Infographic — vertical results chain */
.chain { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.chain-row {
	display: grid; grid-template-columns: auto 1fr auto;
	align-items: center; gap: 18px;
	padding: 16px 20px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 16px;
	backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
	transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
}
.chain-row:hover { transform: translateX(4px); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); }
.chain-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(255,255,255,0.04), 0 0 24px currentColor; }
.chain-text { min-width: 0; }
.chain-label { font-size: 13px; font-weight: 800; color: #FFFFFF; letter-spacing: 0.08em; }
.chain-desc { font-size: 12px; color: rgba(232,236,255,0.6); margin-top: 4px; line-height: 1.45; }
.chain-examples { font-size: 11px; color: rgba(232,236,255,0.42); margin-top: 6px; line-height: 1.4; }
.chain-examples .eg { font-style: italic; letter-spacing: 0.04em; color: rgba(232,236,255,0.5); margin-right: 4px; }
.chain-meta {
	font-size: 11px; color: rgba(232,236,255,0.55); font-style: italic; font-weight: 500;
	text-align: right; white-space: nowrap;
	border-left: 1px solid rgba(255,255,255,0.08);
	padding: 4px 0 4px 12px;
}
.chain-row[data-color="impacts"]    .chain-dot { color: #4DBD74; background: #4DBD74; }
.chain-row[data-color="outcomes"]   .chain-dot { color: #0EA3D8; background: #0EA3D8; }
.chain-row[data-color="outputs"]    .chain-dot { color: #FFC107; background: #FFC107; }
.chain-row[data-color="activities"] .chain-dot { color: #FF9432; background: #FF9432; }
.chain-row[data-color="inputs"]     .chain-dot { color: #FC3C3A; background: #FC3C3A; }

/* Login card */
.right { display: flex; justify-content: center; }
.card {
	width: 100%; max-width: 440px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 24px;
	padding: 40px;
	backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
	box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.card h2 { font-size: 26px; font-weight: 700; margin: 0 0 6px 0; letter-spacing: -0.02em; color: #FFFFFF; }
.card .lead { font-size: 14px; color: rgba(232,236,255,0.6); margin: 0 0 28px 0; }

.field { margin-bottom: 16px; position: relative; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(232,236,255,0.55); margin-bottom: 8px; }
.field input { width: 100%; height: 50px; padding: 0 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; color: #FFFFFF; font-size: 16px; font-family: inherit; transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease; }
.field input::placeholder { color: rgba(232,236,255,0.35); }
.field input:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); }
.field input:focus { outline: none; border-color: #0EA3D8; background: rgba(14,163,216,0.06); box-shadow: 0 0 0 4px rgba(14,163,216,0.18); }
.field input[type="password"] { padding-right: 48px; }

/* Password show/hide button */
.pw-toggle {
	position: absolute; right: 8px; bottom: 8px;
	width: 36px; height: 36px;
	display: grid; place-items: center;
	background: transparent; border: 0; border-radius: 8px;
	cursor: pointer;
	color: rgba(232,236,255,0.45);
	transition: color 200ms ease, background 200ms ease;
}
.pw-toggle:hover { color: rgba(232,236,255,0.85); background: rgba(255,255,255,0.05); }
.pw-toggle:focus-visible { outline: 2px solid rgba(14,163,216,0.6); outline-offset: 1px; }
.pw-toggle svg { width: 20px; height: 20px; display: block; }
.pw-toggle .icon-shown { display: none; }
.pw-toggle[aria-pressed="true"] .icon-hidden { display: none; }
.pw-toggle[aria-pressed="true"] .icon-shown { display: block; }

.row-between { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 26px 0; gap: 12px; }
.remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(232,236,255,0.65); cursor: pointer; user-select: none; }
.remember input { accent-color: #0EA3D8; width: 16px; height: 16px; }
.link { color: #0EA3D8; text-decoration: none; font-size: 13px; font-weight: 600; }
.link:hover { color: #4DBDFF; }
.cta { width: 100%; height: 52px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #FF9432 0%, #FC3C3A 100%); color: #FFFFFF; font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.01em; cursor: pointer; transition: transform 180ms ease, box-shadow 240ms ease; box-shadow: 0 14px 30px -10px rgba(252,60,58,0.55); }
.cta:hover { transform: translateY(-1px); box-shadow: 0 18px 38px -10px rgba(252,60,58,0.7); }
.cta:active { transform: translateY(0); }
.cta:focus-visible { outline: 2px solid #FF9432; outline-offset: 3px; }

.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px 0; color: rgba(232,236,255,0.4); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.foot { font-size: 13px; color: rgba(232,236,255,0.55); text-align: center; margin: 0 0 10px 0; }
.foot:last-child { margin-bottom: 0; }
.foot a { color: #FFFFFF; font-weight: 600; text-decoration: none; margin-left: 4px; }
.foot a:hover { color: #4DBDFF; }

/* Error alert */
.alert-error {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 12px 14px; margin: 0 0 18px 0;
	background: rgba(252,60,58,0.10);
	border: 1px solid rgba(252,60,58,0.35);
	border-radius: 12px;
	color: #FFC8C7;
	font-size: 13px; line-height: 1.4;
}
.alert-error svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: #FC3C3A; }

/* Tablet / small desktop */
@media (max-width: 1024px) {
	.shell { grid-template-columns: 1fr; padding: 40px 32px; gap: 36px; }
	.headline { font-size: 44px; }
	.brand-row { margin-bottom: 28px; }
	.brand-row img { height: 60px; }
	.card { padding: 36px; }
	.left { padding-top: 0; }
	.right { width: 100%; }
	.chain { max-width: 100%; }
}
/* Phone */
@media (max-width: 720px) {
	.chain-row { grid-template-columns: auto 1fr; }
	.chain-meta { display: none; }
}
@media (max-width: 640px) {
	.shell {
		padding: max(24px, env(safe-area-inset-top))
		         max(18px, env(safe-area-inset-right))
		         max(28px, env(safe-area-inset-bottom))
		         max(18px, env(safe-area-inset-left));
		gap: 28px;
	}
	.brand-row { gap: 14px; margin-bottom: 24px; }
	.brand-row img { height: 50px; }
	.brand-tag { font-size: 10px; letter-spacing: 0.18em; padding-left: 12px; max-width: 110px; }
	.eyebrow { font-size: 11px; letter-spacing: 0.18em; margin-bottom: 14px; }
	.headline { font-size: 34px; letter-spacing: -0.015em; margin-bottom: 16px; }
	.sub { font-size: 15px; margin-bottom: 28px; }
	.chain { gap: 10px; }
	.chain-row { padding: 14px 16px; gap: 14px; border-radius: 14px; }
	.chain-label { font-size: 12px; }
	.chain-desc { font-size: 12px; margin-top: 3px; }
	.chain-examples { font-size: 11px; margin-top: 5px; }
	.card { padding: 26px 22px; border-radius: 20px; max-width: 100%; }
	.card h2 { font-size: 22px; }
	.card .lead { font-size: 14px; margin-bottom: 22px; }
	.field { margin-bottom: 14px; }
	.field input { height: 52px; }
	.remember { font-size: 14px; }
	.cta { height: 54px; }
}
/* Very narrow phones */
@media (max-width: 360px) {
	.shell { padding-left: 14px; padding-right: 14px; }
	.brand-tag { display: none; }
	.headline { font-size: 30px; }
	.chain-row { padding: 12px 14px; }
}
/* Landscape short phones — keep content scrollable */
@media (max-height: 600px) and (orientation: landscape) {
	.shell { align-items: flex-start; padding-top: 24px; padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
