:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #19283b;
  background: #f6f8fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
}

button, input { font: inherit; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

.loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.brand, .login-brand, .sidebar-brand {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.8px;
}

.brand span, .login-brand span, .sidebar-brand span {
  margin-left: 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #8695a8;
}

.muted { color: #7c8999; }

.eyebrow {
  color: #8b9aad;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 48% 52%;
  background: white;
}

.login-panel {
  max-width: 440px;
  width: 100%;
  margin: auto;
  padding: 48px;
}

.login-brand { margin-bottom: 65px; }

.login-panel h1 {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 14px 0 10px;
}

.login-form {
  display: flex;
  flex-direction: column;
  margin-top: 38px;
}

.login-form label {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 9px;
}

.login-form input {
  border: 1px solid #dfe5ed;
  border-radius: 9px;
  padding: 14px;
  margin-bottom: 22px;
  outline: none;
}

.login-form input:focus {
  border-color: #365b88;
  box-shadow: 0 0 0 3px #365b8815;
}

.primary-button {
  background: #192e49;
  color: white;
  border: none;
  border-radius: 9px;
  padding: 15px;
  font-weight: 700;
}

.primary-button:disabled { opacity: .6; }

.form-error {
  color: #bd3848;
  font-size: 13px;
  margin-bottom: 12px;
}

.form-error:empty { display: none; }

.login-footer {
  margin-top: 65px;
  color: #a1acba;
  font-size: 12px;
}

.login-visual {
  background:
    radial-gradient(circle at 75% 20%, #4d6986, transparent 45%),
    linear-gradient(145deg, #233d5b, #101e31);
  display: flex;
  align-items: end;
  padding: 75px;
  color: white;
}

.visual-content { max-width: 520px; }

.visual-tag {
  font-size: 11px;
  letter-spacing: 3px;
  opacity: .6;
}

.visual-content h2 {
  font-size: clamp(36px, 4vw, 66px);
  letter-spacing: -2px;
  line-height: 1.07;
  margin: 20px 0;
}

.visual-content p {
  color: #b8c8d8;
  line-height: 1.8;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: #fff;
  border-right: 1px solid #e7ebf0;
  display: flex;
  flex-direction: column;
  padding: 30px 18px;
  flex-shrink: 0;
}

.sidebar-brand {
  margin: 0 12px 45px;
  font-size: 26px;
}

.sidebar-label {
  color: #9aa7b7;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  padding: 0 12px;
  margin-bottom: 15px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-nav a {
  padding: 13px;
  border-radius: 9px;
  color: #6e7c8d;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.sidebar-nav a.active {
  background: #eaf0f7;
  color: #1e3d62;
  font-weight: 700;
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid #edf0f4;
  padding-top: 22px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #dce8f4;
  color: #24476c;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.sidebar-user {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.sidebar-user small {
  color: #94a0ae;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace { flex: 1; min-width: 0; }

.topbar {
  height: 74px;
  background: white;
  border-bottom: 1px solid #e7ebf0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  color: #8491a1;
  font-size: 13px;
}

.text-button {
  border: 0;
  background: none;
  color: #31557b;
  font-weight: 650;
}

.workspace-content {
  max-width: 1400px;
  margin: auto;
  padding: 48px 40px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  gap: 20px;
}

.page-heading h1 {
  font-size: 31px;
  letter-spacing: -1px;
  margin: 10px 0;
}

.status-pill {
  background: #e8f5ed;
  color: #287449;
  border-radius: 50px;
  padding: 9px 13px;
  font-size: 12px;
}

.stats-grid, .software-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat-card, .content-card, .software-card {
  background: white;
  border: 1px solid #e9edf2;
  border-radius: 14px;
  padding: 25px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-card span, .profile-details span {
  color: #8d9aab;
  font-size: 12px;
}

.stat-card strong { font-size: 23px; }

.stat-card small { color: #9ba7b5; }

.content-card { margin-top: 25px; }

.section-heading h2 {
  margin: 0;
  font-size: 20px;
}

.empty-state {
  margin-top: 20px;
  background: #f7f9fc;
  border: 1px dashed #dce4ed;
  border-radius: 12px;
  padding: 45px;
  text-align: center;
  color: #94a0af;
  font-size: 14px;
}

.software-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eaf0f7;
  color: #31577d;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.software-card h3 { margin: 20px 0 7px; }

.software-card p {
  color: #8b98a8;
  font-size: 13px;
  min-height: 35px;
}

.software-status {
  font-size: 11px;
  color: #9aa7b6;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.profile-details div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.secondary-button {
  background: white;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  padding: 12px 20px;
}

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { padding: 32px; }
  .sidebar { width: 210px; }
  .stats-grid, .software-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .app-shell { flex-direction: column; }
  .sidebar {
    width: 100%;
    padding: 18px;
  }
  .sidebar-brand { margin-bottom: 18px; }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar-nav a { white-space: nowrap; }
  .sidebar-label, .sidebar-bottom { display: none; }
  .topbar { height: 56px; padding: 0 20px; }
  .workspace-content { padding: 25px 18px; }
  .stats-grid, .software-grid {
    grid-template-columns: 1fr;
  }
  .page-heading { align-items: flex-start; }
}
