:root {
  --blue: #0093f7;
  --blue-deep: #0b5fb3;
  --navy: #0b1b34;
  --navy-soft: #163f6f;
  --white: #ffffff;
  --gold: #feda00;
  --ink: #17263d;
  --muted: #68768c;
  --line: #dfe8f3;
  --line-strong: #cad8e8;
  --soft: #f5f9fd;
  --soft-blue: #edf7ff;
  --soft-gold: #fff9d5;
  --success: #0f9d58;
  --warning: #df9f00;
  --danger: #d93025;
  --shadow-lg: 0 24px 60px rgba(11, 27, 52, 0.14);
  --shadow-md: 0 18px 40px rgba(11, 27, 52, 0.08);
  --radius-2xl: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(254, 218, 0, 0.16), transparent 22%),
    radial-gradient(circle at bottom right, rgba(0, 147, 247, 0.12), transparent 26%),
    linear-gradient(180deg, #f8fbfe 0%, #eef4fa 100%);
}

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

button,
input,
select {
  font: inherit;
}

.page {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 28px 0;
}

.shell {
  width: 100%;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.brand-pane {
  position: relative;
  padding: 38px;
  background:
    radial-gradient(circle at top left, rgba(254, 218, 0, 0.28), transparent 24%),
    linear-gradient(150deg, #0b1b34 0%, #0f3c73 48%, #0093f7 100%);
  color: var(--white);
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-pane::before,
.brand-pane::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.22;
}

.brand-pane::before {
  width: 280px;
  height: 280px;
  right: -120px;
  top: 90px;
  background: var(--gold);
}

.brand-pane::after {
  width: 320px;
  height: 320px;
  left: -140px;
  bottom: -120px;
  background: rgba(255, 255, 255, 0.28);
}

.brand-top,
.brand-copy,
.brand-bottom {
  position: relative;
  z-index: 1;
}

.brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-top strong {
  display: block;
  font-size: 1.02rem;
}

.brand-top span,
.brand-copy p,
.info-card p,
.footer-note,
.mini-stat p,
.mini-stat span {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  max-width: 11ch;
  margin-bottom: 18px;
}

.brand-copy p {
  max-width: 58ch;
  line-height: 1.82;
  font-size: 1rem;
  margin: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.info-card,
.mini-stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.info-card strong,
.mini-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.info-card p,
.mini-stat p {
  margin: 0;
  line-height: 1.65;
  font-size: 0.92rem;
}

.brand-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-note {
  max-width: 46ch;
  line-height: 1.7;
  font-size: 0.92rem;
}

.help-chip {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
  color: var(--white);
}

.login-pane,
.dashboard-pane {
  padding: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 253, 0.98) 100%);
}

.login-pane {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(100%, 460px);
}

.login-card h2,
.dashboard-header h2,
.section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 10px;
}

.login-card > p,
.dashboard-header p,
.section-intro {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.8;
}

.portal-summary,
.login-alert,
.info-box,
.user-card,
.app-card,
.app-empty,
.quick-panel,
.timeline,
.device-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.portal-summary,
.login-alert,
.info-box {
  padding: 16px 18px;
}

.portal-summary strong,
.login-alert strong,
.info-box strong,
.quick-panel h3,
.user-card h3,
.app-card h3,
.app-empty h3,
.timeline h3,
.device-card h3 {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.portal-summary span,
.login-alert p,
.info-box p,
.quick-panel p,
.user-meta,
.meta-text,
.app-card p,
.app-empty p,
.timeline p,
.device-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.92rem;
}

.form-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbfdff;
  padding: 0 16px;
  outline: none;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-wrap input:focus,
.input-wrap select:focus {
  border-color: rgba(0, 147, 247, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 147, 247, 0.08);
  background: var(--white);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 20px;
  flex-wrap: wrap;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.helper-link,
.text-link {
  font-size: 0.92rem;
  color: var(--blue-deep);
  font-weight: 700;
}

.button,
.button-sso,
.button-ghost,
.button-soft {
  min-height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button-sso:hover,
.button-ghost:hover,
.button-soft:hover {
  transform: translateY(-1px);
}

.button {
  width: 100%;
  border: 0;
  background: linear-gradient(145deg, var(--navy), var(--navy-soft));
  color: var(--white);
  box-shadow: 0 18px 30px rgba(11, 27, 52, 0.16);
}

.button-sso {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  box-shadow: 0 12px 26px rgba(11, 27, 52, 0.05);
}

.button-ghost {
  padding: 0 18px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.button-soft {
  padding: 0 18px;
  min-height: 46px;
  border: 1px solid var(--line);
  background: var(--soft-blue);
  color: var(--blue-deep);
}

.google-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  color: #ea4335;
  background: linear-gradient(145deg, #fff 0%, #f7f7f7 100%);
  border: 1px solid #ececec;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sub-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.sub-links a {
  color: var(--blue-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.login-alert {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #fffefa 0%, #fffdf3 100%);
  border-color: #f7ebad;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.pill.success {
  background: #effbf5;
  color: #10714b;
  border-color: #caecd8;
}

.pill.warning {
  background: #fff8e1;
  color: #9c6c00;
  border-color: #f1df98;
}

.dashboard-pane {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.status-grid,
.dashboard-grid,
.app-grid,
.quick-grid,
.mini-stat-grid {
  display: grid;
  gap: 16px;
}

.status-grid {
  grid-template-columns: repeat(3, 1fr);
}

.dashboard-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.app-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-stat-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

.status-card,
.app-card,
.user-card,
.quick-panel,
.timeline,
.device-card,
.app-empty {
  padding: 22px;
}

.status-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow: var(--shadow-md);
}

.status-card strong {
  display: block;
  color: var(--navy);
  margin-bottom: 8px;
}

.status-card span {
  display: block;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.status-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin: 10px 0 4px;
}

.section-stack {
  display: grid;
  gap: 16px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}

.app-card-header,
.user-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.app-icon,
.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--blue), #55bafb);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
}

.app-icon.sipm {
  background: linear-gradient(145deg, #0c4f94, #0093f7);
}

.app-icon.simobe {
  background: linear-gradient(145deg, #b78a00, #f0bc00);
}

.app-icon.disabled {
  background: linear-gradient(145deg, #8aa0b8, #b9c8d7);
}

.app-card-footer,
.list-row,
.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.app-card-footer {
  margin-top: auto;
}

.meta-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.user-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.user-meta {
  margin-top: 12px;
}

.app-empty {
  background: linear-gradient(180deg, #fffefa 0%, #fffdf7 100%);
  border-color: #f2e6b4;
}

.timeline-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--blue), #67c1ff);
  box-shadow: 0 0 0 6px rgba(0, 147, 247, 0.09);
}

.timeline-item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.device-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.device-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.device-name {
  color: var(--navy);
  font-weight: 700;
}

.dashboard-note {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px dashed #b7d5eb;
  background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
  color: var(--muted);
  line-height: 1.8;
}

.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1120px) {
  .shell,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .brand-pane {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .page {
    width: min(calc(100% - 20px), var(--max));
    padding: 10px 0;
  }

  .brand-pane,
  .login-pane,
  .dashboard-pane {
    padding: 24px;
  }

  .info-grid,
  .status-grid,
  .app-grid,
  .quick-grid,
  .mini-stat-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }
}

.dashboard-v2-pane {
  padding: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 253, 0.98) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-v2-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 10px;
}

.dashboard-v2-header p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.8;
}

.launcher-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

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

.launcher-item {
  min-height: 172px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px 16px;
  box-shadow: 0 12px 28px rgba(11, 27, 52, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.launcher-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(11, 27, 52, 0.1);
  border-color: #cddded;
}


.launcher-badge {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
}

.launcher-badge.sipm {
  background: linear-gradient(145deg, #0c4f94, #0093f7);
}

.launcher-badge.simobe {
  background: linear-gradient(145deg, #b78a00, #f0bc00);
}

.launcher-badge.helpdesk {
  background: linear-gradient(145deg, #5f7187, #94a8bc);
}

.launcher-item strong {
  color: var(--navy);
  font-size: 1rem;
}

.launcher-item span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.launcher-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

@media (max-width: 860px) {
  .dashboard-v2-pane {
    padding: 24px;
  }

  .launcher-grid {
    grid-template-columns: 1fr;
  }
}
