:root {
  --ink: #17243a;
  --muted: #64748b;
  --line: #d5e2ed;
  --primary: #1d5fd1;
  --success: #16853c;
  --white: #ffffff;
  --soft: #eef6fc;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(29, 95, 209, .12), rgba(22, 163, 74, .08)), var(--soft);
  font-family: "Segoe UI", Arial, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
.portal-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.login-panel, .apps-panel {
  width: min(100%, 980px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(30, 58, 95, .14);
}
.login-panel { max-width: 430px; }
.login-panel img {
  width: 178px;
  height: 74px;
  object-fit: cover;
  object-position: center;
}
.eyebrow {
  margin: 18px 0 6px;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 { margin: 0 0 8px; font-size: 2rem; letter-spacing: 0; }
.muted { margin: 0; color: var(--muted); }
.login-form { display: grid; gap: 14px; margin-top: 22px; }
label { display: grid; gap: 6px; font-weight: 700; }
input {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
button {
  min-height: 42px;
  padding: 9px 16px;
  color: var(--white);
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  font-weight: 800;
}
.message {
  margin: 0;
  padding: 10px 12px;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
}
.apps-panel header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}
.apps-panel header button { background: var(--ink); }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.app-card {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfe;
}
.app-card:hover { border-color: var(--primary); box-shadow: 0 12px 30px rgba(30, 58, 95, .12); }
.app-card span { color: var(--success); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.app-card strong { font-size: 1.25rem; }
.app-card p { margin: 0; color: var(--muted); }
