/* Galaxy Strategic Procurement System — home & sign-in */
:root {
	--gx-bg: #070a1c;
	--gx-ink: #eef1ff;
	--gx-soft: #a7b0d6;
	--gx-line: rgba(160, 175, 255, .18);
	--gx-a: #7c5cff;
	--gx-b: #22d3ee;
	--gx-grad: linear-gradient(135deg, #7c5cff 0%, #4f8bff 55%, #22d3ee 100%);
	--gbf-ink-muted: #a7b0d6;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.gx {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--gx-ink);
	background:
		radial-gradient(900px 600px at 15% 10%, rgba(124, 92, 255, .28), transparent 60%),
		radial-gradient(800px 600px at 90% 90%, rgba(34, 211, 238, .18), transparent 60%),
		var(--gx-bg);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
/* star layers */
.gx-stars, .gx-stars::before, .gx-stars::after {
	position: fixed; inset: 0; content: ""; pointer-events: none;
	background-repeat: repeat;
}
.gx-stars {
	background-image:
		radial-gradient(1px 1px at 20px 30px, #fff, transparent),
		radial-gradient(1px 1px at 90px 120px, #cfd8ff, transparent),
		radial-gradient(1.5px 1.5px at 160px 60px, #fff, transparent),
		radial-gradient(1px 1px at 230px 190px, #b9c6ff, transparent);
	background-size: 260px 220px;
	opacity: .7;
	animation: gx-twinkle 6s ease-in-out infinite alternate;
}
.gx-stars::before {
	background-image:
		radial-gradient(1px 1px at 60px 80px, #fff, transparent),
		radial-gradient(2px 2px at 140px 170px, #a5b4ff, transparent),
		radial-gradient(1px 1px at 300px 40px, #fff, transparent);
	background-size: 340px 260px;
	opacity: .5;
	animation: gx-twinkle 9s ease-in-out infinite alternate-reverse;
}
.gx-stars::after { display: none; }
@keyframes gx-twinkle { from { opacity: .35; } to { opacity: .85; } }

/* brand */
.gx-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--gx-ink); text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.gx-logo {
	width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
	background: var(--gx-grad); box-shadow: 0 0 24px rgba(124, 92, 255, .55);
}
.gx-logo svg { width: 22px; height: 22px; }
.gx-brand small { display: block; font-size: 10.5px; font-weight: 500; color: var(--gx-soft); letter-spacing: .14em; text-transform: uppercase; margin-top: 1px; }

/* buttons */
.gx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 28px; border-radius: 12px; border: 1px solid transparent;
	font: 600 15px/1 inherit; font-family: inherit; color: #fff; text-decoration: none; cursor: pointer;
	background: var(--gx-grad); box-shadow: 0 8px 30px rgba(99, 102, 255, .45);
	transition: transform .15s ease, box-shadow .2s ease, opacity .2s;
}
.gx-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(99, 102, 255, .6); }
.gx-btn:disabled { opacity: .7; cursor: default; transform: none; }
.gx-btn-block { width: 100%; padding: 14px; }
.gx-btn-ghost { background: rgba(255,255,255,.06); border-color: var(--gx-line); box-shadow: none; }
.gx-btn-ghost:hover { background: rgba(255,255,255,.1); box-shadow: none; }

/* ---------- Home ---------- */
.gx-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(18px, 4vw, 48px); }
.gx-hero { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; text-align: center; padding: 24px 20px 60px; }
.gx-orbit { position: relative; width: 150px; height: 150px; margin: 0 auto 34px; }
.gx-planet {
	position: absolute; inset: 38px; border-radius: 50%;
	background: radial-gradient(circle at 32% 30%, #b9a8ff, #7c5cff 45%, #2a2f8f 100%);
	box-shadow: 0 0 60px rgba(124, 92, 255, .7), inset -8px -8px 18px rgba(0,0,0,.35);
}
.gx-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gx-line); }
.gx-ring.r2 { inset: 14px; transform: rotateX(68deg) rotateZ(-18deg); border-color: rgba(34, 211, 238, .5); border-width: 2px; }
.gx-ring.r1 { animation: gx-spin 24s linear infinite; }
.gx-ring.r1::after {
	content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
	border-radius: 50%; background: var(--gx-b); box-shadow: 0 0 14px var(--gx-b);
}
@keyframes gx-spin { to { transform: rotate(360deg); } }
.gx-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gx-b); margin-bottom: 18px; }
.gx-hero h1 { margin: 0 auto; max-width: 780px; font-size: clamp(34px, 6vw, 62px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.gx-hero h1 span { background: var(--gx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gx-hero p { margin: 20px auto 36px; max-width: 520px; color: var(--gx-soft); font-size: clamp(15px, 2vw, 18px); line-height: 1.6; }
.gx-foot { position: relative; z-index: 1; text-align: center; padding: 18px; font-size: 12.5px; color: var(--gx-soft); opacity: .8; }

/* ---------- Sign in ---------- */
.gx-auth { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; padding: 28px 18px; }
.gx-card {
	width: 100%; max-width: 420px; padding: 36px 32px 30px; border-radius: 22px;
	background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
	border: 1px solid var(--gx-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.gx-card-brand { display: flex; justify-content: center; margin-bottom: 26px; }
.gx-card h2 { margin: 0 0 6px; text-align: center; font-size: 24px; font-weight: 700; }
.gx-card .sub { margin: 0 0 24px; text-align: center; color: var(--gx-soft); font-size: 14px; }
.gx-alert { display: none; align-items: center; gap: 10px; margin-bottom: 16px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4); color: #fecaca; }
.gx-alert.is-visible { display: flex; }
.gx-alert.is-success { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.4); color: #a7f3d0; }
.gx-alert svg { width: 18px; height: 18px; flex: none; }
.gx-field { margin-bottom: 16px; }
.gx-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; color: var(--gx-soft); }
.gx-input-wrap { position: relative; }
.gx-input-wrap > svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--gx-soft); pointer-events: none; }
.gx-input-wrap input {
	width: 100%; padding: 13px 44px 13px 42px; border-radius: 12px; font: 15px inherit; font-family: inherit;
	color: var(--gx-ink); background: rgba(7, 10, 28, .6); border: 1px solid var(--gx-line); outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.gx-input-wrap input::placeholder { color: #5f6894; }
.gx-input-wrap input:focus { border-color: var(--gx-a); box-shadow: 0 0 0 3px rgba(124, 92, 255, .28); }
.gx-field-toggle { position: absolute; right: 8px; top: 50%; margin-top: -17px; width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; color: var(--gx-soft); cursor: pointer; border-radius: 8px; }
.gx-field-toggle:hover { color: var(--gx-ink); }
.gx-field-toggle svg { width: 18px; height: 18px; }
.gx-row { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 22px; font-size: 13px; }
.gx-remember { display: flex; align-items: center; gap: 8px; color: var(--gx-soft); cursor: pointer; }
.gx-remember input { accent-color: var(--gx-a); }
.gx-link { background: none; border: 0; padding: 0; font: inherit; color: var(--gx-b); cursor: pointer; }
.gx-link:hover { text-decoration: underline; }
.gx-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: gx-spin .7s linear infinite; }
.is-loading .gx-spinner { display: inline-block; }
.gx-card .note { margin: 22px 0 0; text-align: center; font-size: 12.5px; color: var(--gx-soft); }
.gbf-shake { animation: gx-shake .45s; }
@keyframes gx-shake { 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }

/* modal */
.gx-modal-overlay { position: fixed; inset: 0; z-index: 10; display: none; place-items: center; padding: 18px; background: rgba(3, 5, 16, .72); backdrop-filter: blur(4px); }
.gx-modal-overlay.is-open { display: grid; }
.gx-modal { position: relative; width: 100%; max-width: 400px; padding: 28px; border-radius: 18px; background: #0f1330; border: 1px solid var(--gx-line); }
.gx-modal h3 { margin: 0 0 8px; font-size: 19px; }
.gx-modal p { margin: 0 0 18px; color: var(--gx-soft); font-size: 14px; line-height: 1.5; }
.gx-modal p#gbf-forgot-message { margin: 0 0 14px; font-size: 13px; min-height: 16px; }
.gx-modal-actions { display: flex; gap: 10px; }
.gx-modal-actions .gx-btn { padding: 12px; }
.gx-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; cursor: pointer; color: var(--gx-soft); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
