:root {
  --text: #1f2933;
  --muted: #667085;
  --border: #d0d5dd;
  --background: #f6f7f9;
  --panel: #ffffff;
  --button: #1f6feb;
  --button-hover: #185abc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--background);
}

.login-body {
  min-height: 100vh;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-form {
  width: 100%;
  max-width: 360px;
  display: grid;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
}

.login-form h1 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 1.75rem;
}

.login-form label {
  font-weight: bold;
  font-size: 0.95rem;
}

.login-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  font: inherit;
}

.login-form input:focus {
  border-color: var(--button);
  outline: 2px solid rgba(31, 111, 235, 0.18);
}

.login-form button {
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: var(--button);
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.login-form button:hover {
  background: var(--button-hover);
}

.login-form button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.it-note {
  margin: 4px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.4;
}

.login-message {
  min-height: 20px;
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
}

.login-message.error {
  color: #b42318;
}

.dashboard-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(31, 111, 235, 0.14), transparent 34%),
    linear-gradient(180deg, #f4f7fb 0%, #e9eef5 100%);
}

.dashboard-page {
  min-height: 100vh;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 24px 44px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(24, 36, 54, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(18, 30, 46, 0.08);
  backdrop-filter: blur(18px);
}

.dashboard-label {
  margin: 0 0 6px;
  color: #1e5f3a;
  font-size: 0.76rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.dashboard-userbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.session-pill {
  max-width: 430px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(31, 111, 235, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  color: #496176;
  background: #f7fbff;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-topbar button,
.dashboard-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  color: #ffffff;
  background: #1f6feb;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(31, 111, 235, 0.18);
}

.dashboard-topbar button:hover,
.dashboard-action:hover {
  background: #185abc;
}

.dashboard-action.secondary {
  color: #203248;
  background: #edf3f8;
  box-shadow: none;
}

.dashboard-action.secondary:hover {
  background: #dfe9f2;
}

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

.metric-card,
.tool-card,
.auth-code-panel {
  border: 1px solid rgba(24, 36, 54, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(18, 30, 46, 0.06);
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #1f6feb, #2da44e, #d29922);
}

.metric-label {
  display: block;
  margin-bottom: 10px;
  color: #607086;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  font-size: 1.65rem;
  color: #152235;
}

.metric-card p {
  margin: 8px 0 0;
  color: #64758a;
  line-height: 1.5;
}

.tool-grid-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.tool-kicker {
  display: block;
  margin-bottom: 8px;
  color: #8a5a00;
  font-size: 0.76rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-card h2 {
  margin: 0;
  font-size: 1.4rem;
}

.tool-card p {
  margin: 8px 0 0;
  max-width: 420px;
  color: #64758a;
  line-height: 1.55;
}

.auth-code-panel {
  display: block;
  margin-top: 18px;
  padding: 24px;
}

.auth-code-panel[hidden] {
  display: none;
}

.auth-code-header,
.auth-code-actions,
.auth-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-code-header {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(24, 36, 54, 0.08);
}

.auth-code-header h2,
.auth-code-list-head h3 {
  margin: 0;
}

.auth-code-header p {
  margin: 8px 0 0;
  max-width: 640px;
  color: #64758a;
  line-height: 1.55;
}

.auth-code-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.auth-code-form label {
  display: grid;
  gap: 6px;
  color: #55677d;
  font-size: 0.86rem;
  font-weight: bold;
}

.auth-code-form input,
.auth-code-form select {
  min-height: 42px;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  padding: 8px 10px;
  color: #152235;
  background: #ffffff;
  font: inherit;
}

.auth-code-form input:focus,
.auth-code-form select:focus {
  border-color: #1f6feb;
  outline: 3px solid rgba(31, 111, 235, 0.12);
}

.auth-code-actions {
  margin-top: 16px;
}

.auth-code-actions .login-message {
  flex: 1;
  text-align: left;
}

.auth-code-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(24, 36, 54, 0.08);
}

.auth-code-list-head span {
  color: #64758a;
  font-size: 0.86rem;
}

.auth-code-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.auth-code-row {
  padding: 14px 16px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  background: #f8fbfd;
}

.auth-code-row strong {
  display: block;
}

.auth-code-row span {
  color: #64758a;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .dashboard-page {
    padding: 18px 14px 32px;
  }

  .dashboard-topbar,
  .dashboard-userbar,
  .tool-card {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-grid,
  .tool-grid-panel {
    grid-template-columns: 1fr;
  }

  .session-pill {
    max-width: 100%;
  }

  .auth-code-form {
    grid-template-columns: 1fr;
  }

  .auth-code-header,
  .auth-code-actions,
  .auth-code-row {
    align-items: stretch;
    flex-direction: column;
  }
}

.launcher-body {
  min-height: 100vh;
  color: #e5e7eb;
  background:
    radial-gradient(circle at 78% 18%, rgba(31, 111, 235, 0.22), transparent 28%),
    linear-gradient(135deg, #0c1118 0%, #151b24 58%, #0f141b 100%);
}

.launcher-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.launcher-hero {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  gap: 40px;
  align-items: center;
}

.launcher-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.launcher-copy p:not(.dashboard-label) {
  max-width: 620px;
  margin: 22px 0 0;
  color: #aab4c3;
  font-size: 1.08rem;
  line-height: 1.7;
}

.launcher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.launcher-secondary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #2b3b52;
  border-radius: 4px;
  padding: 0 18px;
  color: #dbe7f4;
  background: rgba(15, 19, 26, 0.72);
  font-weight: bold;
  text-decoration: none;
}

.launcher-secondary:hover {
  border-color: #3b5578;
  background: rgba(26, 36, 50, 0.84);
}

.launcher-preview {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.launcher-window {
  width: min(520px, 100%);
  border: 1px solid #27364c;
  border-radius: 8px;
  overflow: hidden;
  background: #0f131a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.launcher-titlebar {
  height: 34px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #27364c;
}

.launcher-titlebar span {
  width: 14px;
  height: 14px;
  border: 1px solid #44566f;
  border-radius: 3px;
}

.launcher-window-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 300px;
}

.launcher-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border-right: 1px solid #27364c;
  background: #121821;
}

.launcher-sidebar span {
  height: 28px;
  border-radius: 4px;
  background: #1d2a3b;
}

.launcher-sidebar span:nth-child(2) {
  background: #1f6feb;
}

.launcher-content {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px;
}

.launcher-content strong {
  color: #ffffff;
  font-size: 2rem;
}

.launcher-content span {
  height: 16px;
  border-radius: 4px;
  background: #1b2533;
}

.launcher-content span:nth-of-type(2) {
  width: 70%;
}

.launcher-content button {
  width: 150px;
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: #1e5f3a;
  font-weight: bold;
}

@media (max-width: 820px) {
  .launcher-hero {
    grid-template-columns: 1fr;
  }

  .launcher-preview {
    min-height: 300px;
  }
}
