:root {
  color-scheme: dark light;
  color: #111827;
  background: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
}

.login-card {
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.login-brand h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2vw, 2.25rem);
  letter-spacing: -0.04em;
}

.login-brand p {
  margin: 0.75rem 0 1.75rem;
  color: #475569;
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.login-form input {
  width: 100%;
  min-height: 3rem;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  padding: 0 1rem;
  font-size: 1rem;
  background: #f8fafc;
  color: #0f172a;
}

.login-form input:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-color: #2563eb;
}

.login-form button {
  width: 100%;
  min-height: 3rem;
  border: none;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background-color 150ms ease;
}

.login-form button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  transition:
    transform 150ms ease,
    background-color 150ms ease;
}

.button:hover {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
}

.login-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #475569;
}

.alert {
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.alert.info {
  background: #e0f2fe;
  color: #0c4a6e;
  border-color: #bae6fd;
}

.alert ul {
  margin: 0;
  padding-left: 1.25rem;
}

.portal-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}

.portal-section-heading h2 {
  margin: 0;
  font-size: 1.1rem;
}

.portal-section-heading span {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
}

.portal-app-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 1.5rem;
}

.portal-app-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 10rem;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 1rem;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.portal-app-card:hover {
  border-color: #2563eb;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.portal-app-card h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.portal-app-card p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

.portal-app-kicker,
.portal-app-meta {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
