/* AuSOM staff portal — front-end shell. Deliberately overrides the theme. */

:root {
	--ap-blue: #009eff;
	--ap-blue-dark: #0077c2;
	--ap-ink: #0b0f12;
	--ap-navy: #0f212f;
	--ap-line: #dfe6ec;
	--ap-muted: #64748b;
	--ap-bg: #f4f7fa;
}

/* Hide whatever the theme wraps the page in. */
body:has(.ausomp) { background: var(--ap-bg); }
body:has(.ausomp) > header:not(.ausomp-bar),
body:has(.ausomp) > footer:not(.ausomp-foot),
body:has(.ausomp) .site-header,
body:has(.ausomp) .site-footer,
body:has(.ausomp) .wp-site-blocks > header,
body:has(.ausomp) .wp-site-blocks > footer { display: none !important; }

.ausomp, .ausomp-login {
	font: 400 16px/1.6 -apple-system, "Segoe UI", system-ui, sans-serif;
	color: #1d2a35;
	-webkit-font-smoothing: antialiased;
}
.ausomp *, .ausomp-login * { box-sizing: border-box; }

/* ---------- Login ---------- */
.ausomp-login {
	min-height: 100vh; display: flex; align-items: center; justify-content: center;
	padding: 28px 18px; background: linear-gradient(145deg, #0b0f12 0%, #0f212f 55%, #123049 100%);
}
.ausomp-login__card {
	width: min(440px, 100%); background: #fff; border-radius: 18px;
	padding: 34px 32px 28px; box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.ausomp-login__brand { display: block; margin-bottom: 26px; }
.ausomp-login__brand img { height: 46px; width: auto; display: block; }
.ausomp-login h1 { margin: 0 0 6px; font-size: 1.5rem; color: var(--ap-ink); letter-spacing: -.01em; }
.ausomp-login__sub { margin: 0 0 22px; color: var(--ap-muted); font-size: .94rem; }
.ausomp-login__foot { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--ap-line); color: var(--ap-muted); font-size: .88rem; }

.ausomp-alert { padding: 12px 15px; border-radius: 9px; margin: 0 0 18px; font-size: .94rem; }
.ausomp-alert p { margin: 0; }
.ausomp-alert--err { background: #fdeaea; border-left: 4px solid #c0392b; color: #8c1d14; }
.ausomp-alert--ok { background: #e4f7ed; border-left: 4px solid #1b9a5e; color: #0f5c38; }

.ausomp-f { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
.ausomp-f label { font-weight: 600; font-size: .92rem; color: var(--ap-ink); }
.ausomp-f input[type="text"], .ausomp-f input[type="password"] {
	width: 100%; min-height: 48px; padding: 11px 14px;
	border: 1.5px solid var(--ap-line); border-radius: 10px; font-size: 1rem; background: #fff;
}
.ausomp-f input:focus { outline: 0; border-color: var(--ap-blue); box-shadow: 0 0 0 3px rgba(0, 158, 255, .16); }
.ausomp-f--row { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ausomp-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400 !important; font-size: .92rem; }
.ausomp-check input { width: 18px; height: 18px; accent-color: var(--ap-blue); }

.ausomp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 11px 24px; border: 0; border-radius: 999px;
	font: 700 1rem inherit; cursor: pointer; text-decoration: none;
	background: #eef2f6; color: var(--ap-ink);
}
.ausomp-btn--primary { background: var(--ap-blue); color: #fff; box-shadow: 0 8px 20px rgba(0, 158, 255, .3); }
.ausomp-btn--primary:hover { background: var(--ap-blue-dark); color: #fff; }
.ausomp-btn--block { width: 100%; }

/* ---------- Shell ---------- */
.ausomp { min-height: 100vh; display: flex; flex-direction: column; background: var(--ap-bg); }

.ausomp-bar {
	background: var(--ap-ink); color: #fff;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 12px clamp(14px, 3vw, 28px); flex-wrap: wrap;
}
.ausomp-bar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.ausomp-bar__brand img { height: 36px; width: auto; display: block; }
.ausomp-bar__tag {
	font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
	color: #8fd4ff; border-left: 1px solid rgba(255, 255, 255, .22); padding-left: 12px;
}
.ausomp-bar__who { display: flex; align-items: center; gap: 12px; font-size: .9rem; flex-wrap: wrap; }
.ausomp-bar__name { font-weight: 700; color: #fff; }
.ausomp-bar__role { color: #8fd4ff; background: rgba(0, 158, 255, .14); padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.ausomp-bar__out { color: #c3d6e4; text-decoration: none; border: 1px solid rgba(255, 255, 255, .28); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
.ausomp-bar__out:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.ausomp-nav {
	background: var(--ap-navy); display: flex; gap: 2px; overflow-x: auto;
	padding: 0 clamp(8px, 2vw, 20px); scrollbar-width: thin;
}
.ausomp-nav a {
	flex: 0 0 auto; padding: 13px 16px; color: #a9c2d4; text-decoration: none;
	font-weight: 600; font-size: .95rem; white-space: nowrap; border-bottom: 3px solid transparent;
}
.ausomp-nav a:hover { color: #fff; }
.ausomp-nav a.is-on { color: #fff; border-bottom-color: var(--ap-blue); }

.ausomp-main { flex: 1; padding: clamp(16px, 3vw, 30px) clamp(12px, 3vw, 28px) 50px; }
.ausomp-main .wrap { max-width: 1320px; margin: 0 auto; padding: 0; }

.ausomp-foot {
	background: var(--ap-ink); color: #8fa9bb; font-size: .85rem;
	display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
	padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
}
.ausomp-foot a { color: #c3d6e4; }

/* The admin screens were written for wp-admin; soften them for the portal. */
.ausomp .ausom-card { box-shadow: 0 1px 3px rgba(11, 15, 18, .05); }
.ausomp .ausom table.widefat { border-radius: 8px; overflow: hidden; }
.ausomp .button,
.ausomp .button-primary {
	min-height: 38px; border-radius: 8px; font-weight: 600;
	display: inline-flex; align-items: center; justify-content: center;
}
.ausomp .button-primary { background: var(--ap-blue); border-color: var(--ap-blue); }
.ausomp .button-primary:hover { background: var(--ap-blue-dark); border-color: var(--ap-blue-dark); }
.ausomp input[type="text"], .ausomp input[type="email"], .ausomp input[type="tel"],
.ausomp input[type="number"], .ausomp input[type="date"], .ausomp input[type="datetime-local"],
.ausomp select, .ausomp textarea {
	min-height: 40px; border-radius: 8px; border: 1.5px solid var(--ap-line); padding: 7px 11px; font-size: .97rem;
}
.ausomp .ausom-roleform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }

@media (max-width: 782px) {
	.ausomp-bar { gap: 10px; }
	.ausomp-bar__tag { display: none; }
	.ausomp-bar__brand img { height: 30px; }
	.ausomp-main { padding-left: 10px; padding-right: 10px; }
}
