/* Team Adroit Portal — login + launcher styles */

:root {
	--asp-ink: #24211f;
	--asp-graphite: #4b4541;
	--asp-graphite-2: #2b2724;
	--asp-blue: #0a5fb4;
	--asp-blue-2: #1c7fe0;
	--asp-red: #d71920;
	--asp-bg: #f3f5f9;
	--asp-card: #ffffff;
	--asp-line: #e2e6ee;
	--asp-muted: #6b7280;
	--asp-radius: 18px;
	--asp-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -8px rgba(16, 24, 40, .12);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.asp {
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--asp-ink);
	background: var(--asp-bg);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}

.asp a { color: var(--asp-blue); text-decoration: none; }
.asp a:hover { text-decoration: underline; }
.asp .dashicons { line-height: 1; }
[hidden] { display: none !important; }

/* ---------- Tagline ---------- */
.asp-tagline {
	font-weight: 500;
	letter-spacing: .32em;
	color: #6fb2f2;
	font-size: 15px;
	text-transform: lowercase;
}
.asp-tagline i { font-style: normal; color: var(--asp-red); margin: 0 .35em; letter-spacing: 0; font-weight: 600; }
.asp-tagline--sm { font-size: 12px; color: var(--asp-blue); letter-spacing: .22em; }

/* =========================================================
   LOGIN
   ========================================================= */
.asp-login {
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
}

/* ----- brand side ----- */
.asp-brand {
	position: relative;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(900px 600px at 0% 0%, #5b534d 0%, transparent 60%),
		radial-gradient(700px 500px at 100% 100%, rgba(10, 95, 180, .35) 0%, transparent 60%),
		linear-gradient(140deg, #3d3733 0%, var(--asp-graphite-2) 55%, #1a1816 100%);
	display: flex;
	align-items: center;
	padding: 64px clamp(32px, 6vw, 96px);
}

.asp-dots {
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(120deg, #000 10%, transparent 70%);
	mask-image: linear-gradient(120deg, #000 10%, transparent 70%);
}

.asp-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.asp-orb--blue { width: 420px; height: 420px; right: -120px; top: -120px; background: var(--asp-blue); animation: asp-float 14s ease-in-out infinite; }
.asp-orb--glow { width: 260px; height: 260px; left: 30%; bottom: -120px; background: #1c7fe0; opacity: .25; animation: asp-float 18s ease-in-out infinite reverse; }

/* glossy red sphere echoing the logo */
.asp-sphere {
	position: absolute;
	width: 120px; height: 120px;
	right: 8%; bottom: 7%;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #fff 0%, #ff8a8f 9%, #e3242b 32%, #a50f15 72%, #6d070b 100%);
	box-shadow: 0 30px 50px -10px rgba(0, 0, 0, .55), inset -10px -14px 30px rgba(0, 0, 0, .35);
	animation: asp-bob 6s ease-in-out infinite;
}
.asp-sphere::after {
	content: ""; position: absolute; left: 10%; right: 10%; bottom: -46px; height: 16px;
	border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(6px);
	animation: asp-shadow 6s ease-in-out infinite;
}

.asp-brand__inner { position: relative; z-index: 2; max-width: 540px; animation: asp-rise .8s ease both; }

.asp-chip {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
	padding: 7px 14px 7px 10px; border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .14);
	backdrop-filter: blur(6px);
}
.asp-chip .dashicons { font-size: 16px; width: 16px; height: 16px; color: #8cc3f7; }

.asp-brand h1 {
	font-size: clamp(30px, 3.4vw, 46px);
	line-height: 1.12;
	font-weight: 700;
	margin: 22px 0 14px;
	letter-spacing: -.02em;
}
.asp-brand__text { color: rgba(255, 255, 255, .72); font-size: 16px; font-weight: 300; margin: 0 0 34px; max-width: 460px; }

.asp-feats { list-style: none; margin: 0 0 44px; padding: 0; display: grid; gap: 14px; }
.asp-feats li {
	display: flex; gap: 14px; align-items: center;
	padding: 14px 16px; border-radius: 14px;
	background: rgba(255, 255, 255, .045);
	border: 1px solid rgba(255, 255, 255, .08);
	transition: background .25s, transform .25s;
}
.asp-feats li:hover { background: rgba(255, 255, 255, .08); transform: translateX(4px); }
.asp-feats .dashicons {
	flex: none; width: 40px; height: 40px; font-size: 20px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 11px; background: linear-gradient(135deg, var(--asp-blue-2), var(--asp-blue));
	box-shadow: 0 8px 18px -6px rgba(28, 127, 224, .7);
}
.asp-feats strong { display: block; font-weight: 600; font-size: 14.5px; }
.asp-feats small { color: rgba(255, 255, 255, .6); font-size: 12.5px; }

/* ----- form side ----- */
.asp-panel {
	position: relative;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 48px 24px 72px;
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(10, 95, 180, .07), transparent 70%),
		radial-gradient(500px 260px at 0% 100%, rgba(215, 25, 32, .05), transparent 70%),
		var(--asp-bg);
}

.asp-card {
	width: 100%; max-width: 420px;
	background: var(--asp-card);
	border: 1px solid var(--asp-line);
	border-radius: 24px;
	padding: 36px 36px 28px;
	box-shadow: var(--asp-shadow);
	animation: asp-rise .7s .1s ease both;
}

.asp-logo { display: block; text-align: center; margin: 0 auto 18px; }
.asp-logo img { width: 230px; max-width: 80%; height: auto; display: inline-block; }

.asp-card__title { font-size: 22px; font-weight: 600; margin: 0; text-align: center; letter-spacing: -.01em; }
.asp-card__sub { margin: 4px 0 24px; text-align: center; color: var(--asp-muted); font-size: 14px; }

.asp-alert {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 12px 14px; border-radius: 12px; margin: 0 0 18px;
	font-size: 13.5px; line-height: 1.45;
	animation: asp-shake .4s ease;
}
.asp-alert .dashicons { flex: none; margin-top: 1px; }
.asp-alert--error { background: #fdecec; color: #9b1c1c; border: 1px solid #f8c9cb; }
.asp-alert--ok { background: #e9f7ef; color: #146c3b; border: 1px solid #bfe6cf; animation: none; }
.asp-alert--info { background: #eaf3fd; color: #0b4f94; border: 1px solid #c4ddf7; animation: none; }

.asp-field { margin-bottom: 16px; }
.asp-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: #3b3836; }

.asp-input {
	position: relative; display: flex; align-items: center;
	background: #f7f8fb; border: 1.5px solid var(--asp-line); border-radius: 12px;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.asp-input:focus-within { background: #fff; border-color: var(--asp-blue); box-shadow: 0 0 0 4px rgba(10, 95, 180, .12); }
.asp-input > .dashicons { position: absolute; left: 14px; color: #9aa1ad; font-size: 18px; width: 18px; height: 18px; transition: color .2s; }
.asp-input:focus-within > .dashicons { color: var(--asp-blue); }
.asp-input input {
	width: 100%; border: 0; background: transparent; outline: 0;
	font: inherit; font-size: 15px; color: var(--asp-ink);
	padding: 13px 14px 13px 42px; border-radius: 12px;
}
.asp-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; }

.asp-eye {
	flex: none; border: 0; background: none; cursor: pointer;
	width: 44px; height: 44px; color: #9aa1ad; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
}
.asp-eye:hover { color: var(--asp-blue); }
.asp-caps { display: block; margin-top: 6px; color: #b45309; font-size: 12px; }

.asp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px; font-size: 13.5px; }
.asp-row a { font-weight: 500; }

.asp-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: #45413e; user-select: none; }
.asp-check input { position: absolute; opacity: 0; pointer-events: none; }
.asp-check span {
	width: 18px; height: 18px; border-radius: 6px;
	border: 1.5px solid #c5cbd6; background: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	transition: all .2s;
}
.asp-check input:checked + span { background: var(--asp-blue); border-color: var(--asp-blue); }
.asp-check input:checked + span::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.asp-check input:focus-visible + span { box-shadow: 0 0 0 4px rgba(10, 95, 180, .18); }

.asp-btn {
	position: relative; width: 100%;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 0; cursor: pointer; color: #fff !important; text-decoration: none !important;
	font: inherit; font-size: 15.5px; font-weight: 600; letter-spacing: .01em;
	padding: 14px 20px; border-radius: 12px;
	background: linear-gradient(135deg, var(--asp-blue-2) 0%, var(--asp-blue) 60%, #084b8f 100%);
	box-shadow: 0 10px 22px -8px rgba(10, 95, 180, .65), inset 0 1px 0 rgba(255, 255, 255, .18);
	transition: transform .15s, box-shadow .2s, filter .2s;
	overflow: hidden;
}
.asp-btn::before {
	content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
	transform: skewX(-20deg); transition: left .6s;
}
.asp-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -8px rgba(10, 95, 180, .75); }
.asp-btn:hover::before { left: 120%; }
.asp-btn:active { transform: translateY(0); }
.asp-btn .dashicons { transition: transform .2s; }
.asp-btn:hover .dashicons { transform: translateX(3px); }
.asp-btn--inline { width: auto; padding: 11px 22px; }

.asp-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: asp-spin .7s linear infinite; }
.asp-btn.is-loading { pointer-events: none; filter: saturate(.85); }
.asp-btn.is-loading .dashicons { display: none; }
.asp-btn.is-loading .asp-spinner { display: inline-block; }

.asp-back { text-align: center; margin: 22px 0 0; font-size: 13.5px; }
.asp-back a { color: var(--asp-muted); display: inline-flex; align-items: center; gap: 4px; }
.asp-back a:hover { color: var(--asp-blue); text-decoration: none; }
.asp-back .dashicons { font-size: 16px; width: 16px; height: 16px; }

.asp-foot { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #9aa1ad; font-size: 12px; }

/* =========================================================
   PORTAL
   ========================================================= */
.asp-portal-page { min-height: 100vh; display: flex; flex-direction: column; }

.asp-top {
	position: sticky; top: 0; z-index: 10;
	display: flex; align-items: center; gap: 16px;
	padding: 12px clamp(16px, 4vw, 40px);
	background: rgba(255, 255, 255, .86);
	backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--asp-line);
}
.asp-top__logo img { height: 52px; width: auto; display: block; }
.asp-top__label {
	font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--asp-blue); background: #eaf3fd; padding: 5px 10px; border-radius: 999px;
}
.asp-top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.asp-ghost, .asp-logout {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 13.5px; font-weight: 500; padding: 9px 12px; border-radius: 10px;
	color: #45413e !important; text-decoration: none !important; transition: background .2s, color .2s;
}
.asp-ghost:hover { background: #f1f3f7; }
.asp-logout { border: 1px solid var(--asp-line); }
.asp-logout:hover { background: #fdecec; color: #b42318 !important; border-color: #f8c9cb; }

.asp-user {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 5px 12px 5px 5px; border-radius: 999px; text-decoration: none !important;
	border: 1px solid var(--asp-line); background: #fff; transition: box-shadow .2s;
}
.asp-user:hover { box-shadow: 0 4px 14px -6px rgba(16, 24, 40, .25); }
.asp-user img { width: 36px; height: 36px; border-radius: 50%; display: block; }
.asp-user strong { display: block; font-size: 13.5px; color: var(--asp-ink); line-height: 1.2; font-weight: 600; }
.asp-user small { display: block; font-size: 11.5px; color: var(--asp-muted); line-height: 1.2; }

.asp-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 40px) 40px; }

.asp-hero {
	position: relative; overflow: hidden;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: 34px 36px; border-radius: 24px; margin-bottom: 28px; color: #fff;
	background:
		radial-gradient(500px 260px at 100% 0%, rgba(28, 127, 224, .55), transparent 70%),
		radial-gradient(220px 220px at 88% 120%, rgba(215, 25, 32, .55), transparent 70%),
		linear-gradient(135deg, #3d3733, var(--asp-graphite-2));
	box-shadow: var(--asp-shadow);
	animation: asp-rise .6s ease both;
}
.asp-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
	background-size: 20px 20px;
	-webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
	mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.asp-hero > * { position: relative; z-index: 1; }
.asp-hero__eyebrow { margin: 0 0 6px; font-size: 13px; color: rgba(255, 255, 255, .6); letter-spacing: .02em; }
.asp-hero h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.asp-hero h1 span { color: #8cc3f7; }
.asp-hero__sub { margin: 8px 0 0; color: rgba(255, 255, 255, .72); font-weight: 300; }

.asp-search { position: relative; display: block; width: min(320px, 100%); }
.asp-search .dashicons { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .7); }
.asp-search input {
	width: 100%; font: inherit; font-size: 14px; color: #fff;
	padding: 12px 14px 12px 42px; border-radius: 12px; outline: 0;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
}
.asp-search input::placeholder { color: rgba(255, 255, 255, .6); }
.asp-search input:focus { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); }

.asp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

.asp-tile {
	--c: var(--asp-blue);
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; gap: 14px;
	padding: 22px; min-height: 190px;
	background: var(--asp-card); border: 1px solid var(--asp-line); border-radius: var(--asp-radius);
	color: var(--asp-ink) !important; text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
	animation: asp-rise .55s var(--d, 0ms) ease both;
}
.asp-tile::before {
	content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
	background: var(--c); opacity: .07; transition: transform .4s, opacity .3s;
}
.asp-tile:hover, .asp-tile:focus-visible {
	transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, #fff);
	box-shadow: 0 18px 36px -14px color-mix(in srgb, var(--c) 45%, transparent);
	outline: 0;
}
.asp-tile:hover::before { transform: scale(1.5); opacity: .12; }

.asp-tile__icon {
	width: 54px; height: 54px; border-radius: 15px;
	display: inline-flex; align-items: center; justify-content: center;
	color: #fff; background: var(--c);
	background-image: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .08));
	box-shadow: 0 10px 20px -8px var(--c);
}
.asp-tile__icon .dashicons { font-size: 26px; width: 26px; height: 26px; }
.asp-tile__body strong { display: block; font-size: 16.5px; font-weight: 600; margin-bottom: 4px; }
.asp-tile__body small { display: block; color: var(--asp-muted); font-size: 13.5px; line-height: 1.5; }
.asp-tile__go {
	margin-top: auto; display: inline-flex; align-items: center; gap: 4px;
	font-size: 13.5px; font-weight: 600; color: var(--c);
}
.asp-tile__go .dashicons { font-size: 18px; width: 18px; height: 18px; transition: transform .2s; }
.asp-tile:hover .asp-tile__go .dashicons { transform: translateX(4px); }

.asp-empty {
	text-align: center; padding: 56px 24px; border-radius: 24px;
	background: #fff; border: 1px dashed #cdd4df;
}
.asp-empty > .dashicons { font-size: 42px; width: 42px; height: 42px; color: var(--asp-blue); }
.asp-empty h2 { margin: 12px 0 6px; font-size: 20px; }
.asp-empty p { color: var(--asp-muted); max-width: 440px; margin: 0 auto 18px; }

.asp-none { text-align: center; color: var(--asp-muted); padding: 24px; }

.asp-tip {
	display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap;
	margin: 34px 0 0; color: var(--asp-muted); font-size: 13px; text-align: center;
}
.asp-tip .dashicons { color: #e0a100; }

.asp-foot--portal { position: static; padding: 18px; border-top: 1px solid var(--asp-line); background: #fff; display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- Animations ---------- */
@keyframes asp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes asp-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 30px); } }
@keyframes asp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes asp-shadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.8); opacity: .5; } }
@keyframes asp-spin { to { transform: rotate(360deg); } }
@keyframes asp-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.asp-login { grid-template-columns: 1fr; }
	.asp-brand { padding: 40px 24px 96px; min-height: auto; }
	.asp-brand h1 { margin-top: 16px; }
	.asp-feats, .asp-sphere, .asp-brand .asp-tagline { display: none; }
	.asp-brand__text { margin-bottom: 18px; }
	.asp-panel { padding: 0 16px 72px; margin-top: -64px; background: transparent; }
	.asp-login-page { background: var(--asp-bg); }
}

@media (max-width: 720px) {
	.asp-top { flex-wrap: wrap; }
	.asp-top__label, .asp-ghost span:not(.dashicons), .asp-user span, .asp-logout span:not(.dashicons) { display: none; }
	.asp-user { padding: 3px; }
	.asp-top__logo img { height: 38px; }
	.asp-hero { padding: 26px 22px; }
	.asp-card { padding: 28px 22px 22px; border-radius: 20px; }
	.asp-tiles { gap: 12px; }
	.asp-tile { flex-direction: row; align-items: center; min-height: 0; padding: 16px; gap: 14px; }
	.asp-tile__icon { flex: none; width: 48px; height: 48px; }
	.asp-tile__body { flex: 1; min-width: 0; }
	.asp-tile__go { margin: 0; font-size: 0; }
	.asp-tile__go .dashicons { font-size: 20px; width: 20px; height: 20px; }
}
