:root {
    --brand: #0046C8;
    --brand-2: #065ec2;
    --accent: #00c2ff;
    --ink: #0b132b;
    --muted: #667085;
    --bg: #f5f7fa;
    --card: #ffffff;
    --ring: rgba(10, 132, 255, 0.35);
    --radius: 14px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--brand);
  text-decoration: none;
}

/* Generic */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.1rem;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.25);
  min-width:280px;
}
.btn-primary:focus {
  outline: 4px solid var(--ring);
  outline-offset: 2px;
}
.input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.input:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 4px solid var(--ring);
}
.label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.5rem 0;
}
.help {
  font-size: 0.85rem;
  color: var(--muted);
}
.card {
  background: var(--card);
  border: 1px solid #eef2f6;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(20, 40, 80, 0.06);
}
.container {
  max-width: auto;
  margin-inline: auto;
  padding: 0 24px;
}

/* === LOGIN PAGE (wider island with left image placeholder) === */
.site-header {
  background: var(--brand);
  color: #fff;
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  height: 50px;
}
.logo-placeholder {
  width: 120px;
  height: 28px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.login-bg {
  height: 220px;
  background: #e5e7eb;
}
/* Wider island */
.login-island {
  max-width: 880px;
  margin: -110px auto 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(20, 40, 80, 0.12);
}
.login-head h1 {
  margin: 0 0 6px;
  font-size: 22px;
}
.login-head .kicker {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 12px;
}

/* Two-column split for image + form */
.login-split {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}
.login-visual {
  background: #fff;
  border-radius: 12px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}
.login-visual small {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  color: #64748b;
}
.login-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

@media (max-width: 920px) {
  .login-split {
    grid-template-columns: 1fr;
  }
}

.footer {
  padding: 16px 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* === HOME PAGE (pills nav, centered content, grey bg) === */
.app-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: var(--brand);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.app-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-wrap {
  padding: 24px 0;
}
.hero-placeholder {
  height: 200px;
  background: #e5e7eb;
  border-radius: 12px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -26px;
  justify-content: center;
}
.tab {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid #daeafe;
  background: #f6faff;
  color: #0a84ff;
  font-weight: 600;
}
.tab.active {
  background: #0a84ff;
  color: #fff;
  border-color: #0a84ff;
}

.center-stage {
  max-width: 720px;
  margin: 22px auto 28px;
  padding: 0 24px;
}
.content-card {
  margin-top: 18px;
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(20, 40, 80, 0.08);
  padding: 18px;
}
.content-card .editor {
  min-height: 220px;
}

.app-footer {
  padding: 16px 24px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid #eef2f6;
  background: #fff;
  text-align: center;
}

@media (max-width: 640px) {
  .login-island {
    margin: -90px 16px 24px;
    padding: 22px;
  }
  .center-stage {
    padding: 0 16px;
  }
}
