:root {
  --navy-950: #031728;
  --navy-900: #071f36;
  --navy-850: #0b2d49;
  --navy-800: #113d60;
  --teal: #38d6c1;
  --teal-soft: #79ead8;
  --violet: #6966ff;
  --violet-dark: #8658ed;
  --ink: #10243c;
  --muted: #71839a;
  --line: #dfe8f1;
  --white: #ffffff;
  --danger: #a33f4b;
  --success: #14735d;
  --shadow: 0 25px 75px rgba(5, 31, 55, .16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef5f8;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

button,
input {
  font: inherit;
}

.public-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 5% 8%,
      rgba(56, 214, 193, .18),
      transparent 32%
    ),
    radial-gradient(
      circle at 94% 88%,
      rgba(105, 102, 255, .29),
      transparent 41%
    ),
    linear-gradient(
      135deg,
      #031728,
      #0b2544 57%,
      #1c3978
    );
}

.landing-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.landing-card {
  width: min(930px, 100%);
  padding: 55px 70px 50px;
  color: var(--white);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 36px;
  background:
    linear-gradient(
      145deg,
      rgba(44, 74, 101, .91),
      rgba(43, 68, 105, .87)
    );
  box-shadow: 0 36px 95px rgba(0, 0, 0, .35);
  backdrop-filter: blur(24px);
}

.brand img {
  width: 460px;
  max-width: 88%;
}

.landing-card h1 {
  margin: 31px 0 20px;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -.048em;
}

.landing-description {
  max-width: 700px;
  margin: 0 auto;
  color: #ceddea;
  font-size: 18px;
  line-height: 1.7;
}

.landing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 39px;
}

.landing-action {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 20px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
}

.landing-primary {
  background:
    linear-gradient(
      120deg,
      var(--violet),
      var(--violet-dark)
    );
  box-shadow: 0 18px 38px rgba(91, 70, 227, .3);
}

.landing-secondary {
  background: rgba(255, 255, 255, .08);
}

.action-icon {
  flex: 0 0 55px;
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .13);
  font-size: 29px;
}

.landing-action strong {
  display: block;
  font-size: 17px;
}

.landing-action small {
  display: block;
  margin-top: 5px;
  color: #d8e3ed;
}

.landing-footer {
  margin: 28px 0 0;
  color: #bdcddd;
}

.landing-footer a {
  color: var(--teal-soft);
  font-weight: 850;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 0 0,
      rgba(56, 214, 193, .2),
      transparent 30%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(105, 102, 255, .25),
      transparent 36%
    ),
    #eef5f8;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 24px;
}

.auth-card {
  width: min(1210px, 100%);
  min-height: 680px;
  display: grid;
  grid-template-columns: .94fr 1.26fr;
  overflow: hidden;
  border-radius: 38px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  padding: 50px;
  color: var(--white);
  background:
    linear-gradient(
      145deg,
      #04182c,
      #0d4055
    );
}

.auth-visual > img {
  width: 305px;
  max-width: 95%;
}

.auth-message {
  position: relative;
  z-index: 2;
  margin-top: 95px;
}

.auth-message > span {
  color: var(--teal-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .17em;
}

.auth-message h1 {
  margin: 26px 0 18px;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.auth-message p {
  color: #bfd2df;
  font-size: 17px;
  line-height: 1.75;
}

.auth-form-panel {
  padding: 60px 70px;
  background:
    linear-gradient(
      145deg,
      #fff,
      #fbfbff
    );
}

.register-panel {
  padding-top: 42px;
  padding-bottom: 42px;
}

.auth-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
}

.auth-heading h2 {
  margin: 0 0 8px;
  font-size: 42px;
  letter-spacing: -.04em;
}

.auth-heading p {
  margin: 0;
  color: var(--muted);
}

.small-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  padding: 12px 18px;
  color: #536b84;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.register-form {
  margin-top: 24px;
  gap: 9px;
}

.auth-form label {
  margin-top: 5px;
  color: #2d465f;
  font-size: 14px;
  font-weight: 850;
}

.auth-form input {
  width: 100%;
  padding: 16px 18px;
  outline: none;
  border: 1px solid #cbd8e7;
  border-radius: 16px;
  background: #edf4ff;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.form-grid > div {
  display: grid;
  gap: 8px;
}

.password-field {
  position: relative;
}

.password-field button {
  position: absolute;
  top: 9px;
  right: 10px;
  padding: 10px 17px;
  color: #4d4fcf;
  font-weight: 850;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  background: var(--white);
}

.password-guidance {
  margin: 2px 0 5px;
  color: var(--muted);
  font-size: 12px;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
  border: 0;
  border-radius: 16px;
  background:
    linear-gradient(
      120deg,
      var(--violet),
      var(--violet-dark)
    );
}

.auth-footer {
  margin-top: 23px;
  text-align: center;
  color: var(--muted);
}

.auth-footer a {
  color: #5953d5;
  font-weight: 900;
}

.alert {
  margin: 22px 0;
  padding: 15px 17px;
  border-radius: 15px;
}

.alert-error {
  color: var(--danger);
  background: #fff0f1;
}

.alert-success {
  color: var(--success);
  background: #e9fbf5;
}

.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 25px 21px;
  color: var(--white);
  background:
    linear-gradient(
      180deg,
      #061c30,
      #0d3153 70%,
      #111f47
    );
}

.sidebar-brand img {
  width: 250px;
  max-width: 100%;
}

.firm-card {
  padding: 19px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 20px;
  background: rgba(255, 255, 255, .09);
}

.firm-card small,
.firm-card span {
  display: block;
}

.firm-card strong {
  display: block;
  margin: 8px 0;
}

.firm-card span {
  color: var(--teal-soft);
  font-size: 12px;
}

.menu-label {
  margin: 27px 12px 12px;
  color: #829bb4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .21em;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  color: #bfd0df;
  font-weight: 750;
  border-radius: 15px;
}

.sidebar-nav a > span {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .08);
}

.sidebar-nav a.active {
  color: var(--white);
  background:
    linear-gradient(
      110deg,
      #625de9,
      #4b55bd
    );
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  padding: 22px 10px 5px;
  color: #98aec2;
}

.sidebar-footer button {
  padding: 0;
  color: var(--white);
  font-weight: 850;
  cursor: pointer;
  border: 0;
  background: transparent;
}

.workspace-main {
  min-width: 0;
  background:
    linear-gradient(
      180deg,
      #f4fbfd,
      #eef3f7
    );
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 37px;
  border-bottom: 1px solid #dfe8f1;
  background: rgba(255, 255, 255, .9);
}

.topbar > div:first-child {
  display: grid;
}

.topbar > div:first-child small {
  color: #6d8197;
  font-weight: 900;
  letter-spacing: .16em;
}

.topbar > div:first-child strong {
  margin-top: 4px;
  font-size: 20px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}

.user-chip > span {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      var(--teal),
      var(--violet)
    );
}

.user-chip div {
  display: grid;
}

.user-chip small {
  color: var(--muted);
  font-size: 10px;
}

.workspace-content {
  padding: 29px 37px 60px;
}

.dashboard-hero,
.placeholder-heading {
  padding: 40px 44px;
  color: var(--white);
  border-radius: 29px;
  background:
    linear-gradient(
      135deg,
      #0a3454,
      #144d75 60%,
      #0b374c
    );
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1fr 245px;
  gap: 25px;
}

.capsule {
  display: inline-flex;
  width: max-content;
  padding: 8px 15px;
  color: var(--teal-soft);
  font-size: 11px;
  font-weight: 900;
  border: 1px solid rgba(60, 224, 198, .45);
  border-radius: 999px;
}

.dashboard-hero h1,
.placeholder-title h1 {
  margin: 19px 0 14px;
  font-size: clamp(36px, 4vw, 49px);
  line-height: 1.07;
  letter-spacing: -.047em;
}

.dashboard-hero p,
.placeholder-title p {
  max-width: 720px;
  color: #cadce8;
  font-size: 17px;
  line-height: 1.7;
}

.hero-number {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border-radius: 23px;
  background: rgba(2, 31, 48, .46);
}

.hero-number strong {
  margin: 10px 0;
  font-size: 65px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-top: 21px;
}

.framework-card {
  min-height: 175px;
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 16px;
  padding: 22px;
  border: 1px solid #e1e9f1;
  border-radius: 22px;
  background: var(--white);
}

.framework-icon,
.placeholder-title > span {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      var(--teal),
      var(--violet)
    );
}

.framework-card h2 {
  margin: 4px 0 8px;
  font-size: 18px;
}

.framework-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.placeholder-title {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  margin-top: 23px;
}

.placeholder-title h1 {
  margin-top: 0;
}

.placeholder-panel {
  margin-top: 20px;
  padding: 45px;
  text-align: center;
  border: 1px solid #e1e9f1;
  border-radius: 24px;
  background: var(--white);
}

.placeholder-illustration {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 27px;
}

.placeholder-illustration span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      var(--teal),
      var(--violet)
    );
}

.placeholder-panel p {
  max-width: 650px;
  margin: 0 auto 25px;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 1100px) {
  .framework-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .landing-card {
    padding: 39px 23px;
  }

  .landing-actions,
  .form-grid,
  .framework-grid {
    grid-template-columns: 1fr;
  }

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

  .auth-visual {
    display: none;
  }

  .auth-form-panel {
    padding: 38px 23px;
  }

  .workspace {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .workspace-content {
    padding: 21px 15px 50px;
  }

  .framework-card {
    grid-template-columns: 55px 1fr;
  }
}
