:root {
  --brand-ink: #172033;
  --brand-muted: #626a78;
  --brand-line: #d8dde5;
  --brand-surface: #ffffff;
  --brand-bg: #f3f6f9;
  --brand-blue: #315887;
  --brand-blue-dark: #24466f;
  --brand-cyan: #8fd0ee;
  --brand-green: #8bbf7a;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark img {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.app-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.app-brand-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.quiet-link {
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.quiet-link:hover {
  color: var(--brand-blue-dark);
  text-decoration: underline;
}

.toolbar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.toolbar-brand .brand-mark img {
  height: 34px;
}

.auth-page {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(243, 246, 249, .94), rgba(243, 246, 249, .88)),
    radial-gradient(circle at 50% 0%, rgba(143, 208, 238, .35), transparent 48%),
    var(--brand-bg);
  color: var(--brand-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.auth-page * {
  box-sizing: border-box;
}

.auth-stage {
  display: grid;
  min-height: 100vh;
  padding: 7vh 5vw;
}

.auth-sky {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: min(760px, 86vh);
  overflow: hidden;
  border: 1px solid rgba(49, 88, 135, .18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(130, 204, 237, .86) 0%, rgba(220, 241, 249, .78) 48%, rgba(255, 255, 255, .95) 100%);
  box-shadow: 0 28px 80px rgba(23, 32, 51, .12);
}

.auth-sky::before,
.auth-sky::after {
  position: absolute;
  right: -10%;
  bottom: -8%;
  left: -10%;
  height: 42%;
  background:
    radial-gradient(ellipse at 18% 68%, rgba(255, 255, 255, .95) 0 14%, transparent 15%),
    radial-gradient(ellipse at 38% 54%, rgba(255, 255, 255, .88) 0 18%, transparent 19%),
    radial-gradient(ellipse at 62% 62%, rgba(255, 255, 255, .92) 0 20%, transparent 21%),
    radial-gradient(ellipse at 84% 52%, rgba(255, 255, 255, .9) 0 16%, transparent 17%);
  content: "";
  opacity: .95;
}

.auth-sky::after {
  right: 6%;
  bottom: 20%;
  left: 6%;
  height: 46%;
  border: 1px solid rgba(255, 255, 255, .62);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: transparent;
  opacity: .62;
}

.auth-header {
  position: relative;
  z-index: 1;
  align-self: start;
  padding: 30px clamp(24px, 5vw, 72px);
}

.auth-content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 24px 24px 80px;
}

.auth-card {
  width: min(460px, 100%);
  border: 1px solid rgba(49, 88, 135, .18);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  padding: 42px clamp(24px, 4vw, 44px);
  text-align: center;
  box-shadow: 0 22px 60px rgba(23, 32, 51, .16);
  backdrop-filter: blur(18px);
}

.auth-card-logo {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin: 0 auto 24px;
  border: 1px solid rgba(49, 88, 135, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 26px rgba(23, 32, 51, .12);
}

.auth-card-logo img {
  width: 54px;
  height: auto;
  object-fit: contain;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.16;
}

.auth-card p {
  margin: 0 0 28px;
  color: var(--brand-muted);
  font-size: 15px;
  line-height: 1.55;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #293144, #11151f);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 18px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(17, 21, 31, .22);
}

.primary-action:hover {
  background: linear-gradient(180deg, #1f2637, #090c13);
}

.login-page {
  margin: 0;
  min-height: 100vh;
  color: var(--brand-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.login-page * {
  box-sizing: border-box;
}

.split-login {
  display: grid;
  grid-template-columns: minmax(320px, 52vw) minmax(360px, 1fr);
  min-height: 100vh;
}

.login-brand-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  background: #184d9c;
  padding: clamp(40px, 8vw, 96px);
}

.login-brand-panel img {
  display: block;
  width: min(360px, 72%);
  height: auto;
  object-fit: contain;
}

.login-access-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: #ffffff;
  padding: clamp(32px, 7vw, 92px);
}

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

.login-kicker {
  margin: 0 0 14px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-access-card h1 {
  margin: 0 0 12px;
  color: var(--brand-ink);
  font-size: 34px;
  line-height: 1.12;
}

.login-access-card p {
  margin: 0 0 28px;
  color: var(--brand-muted);
  font-size: 15px;
  line-height: 1.55;
}

.login-action {
  width: min(320px, 100%);
}

.tools-page {
  margin: 0;
  min-height: 100vh;
  color: var(--brand-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.tools-page * {
  box-sizing: border-box;
}

.split-tools {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(560px, 3fr);
  min-height: 100vh;
}

.tools-brand-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  background: #184d9c;
  padding: clamp(40px, 8vw, 96px);
}

.tools-brand-panel img {
  display: block;
  width: min(360px, 72%);
  height: auto;
  object-fit: contain;
}

.tools-access-panel {
  display: grid;
  align-items: center;
  min-height: 100vh;
  background: #ffffff;
  padding: clamp(28px, 5vw, 72px) clamp(24px, 4vw, 56px);
}

.tools-access-content {
  width: 100%;
  max-width: 920px;
}

.tools-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.tools-header h1 {
  margin: 0 0 10px;
  color: var(--brand-ink);
  font-size: 34px;
  line-height: 1.12;
}

.tools-header p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 15px;
  line-height: 1.55;
}

.tools-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tools-card {
  display: block;
  min-height: 208px;
  border: 1px solid #184d9c;
  border-radius: 12px;
  background: #ffffff;
  color: inherit;
  padding: 24px;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.tools-card:hover,
.tools-card:focus-visible {
  border-color: #C1D443;
  background: #C1D443;
  color: #ffffff;
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(104, 124, 23, .22);
}

.tools-card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  background: rgba(24, 77, 156, .12);
  color: #184d9c;
  transition: background .16s ease, color .16s ease;
}

.tools-card:hover .tools-card-icon,
.tools-card:focus-visible .tools-card-icon {
  background: rgba(255, 255, 255, .2);
  color: #ffffff;
}

.tools-card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tools-card h2 {
  margin: 22px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.tools-card p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 14px;
  line-height: 1.5;
  transition: color .16s ease;
}

.tools-card:hover p,
.tools-card:focus-visible p {
  color: rgba(255, 255, 255, .86);
}

@media (max-width: 720px) {
  .app-brand-bar,
  .toolbar-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-stage {
    padding: 16px;
  }

  .auth-sky {
    min-height: calc(100vh - 32px);
    border-radius: 20px;
  }

  .auth-header {
    padding: 22px;
  }

  .auth-card {
    border-radius: 18px;
    padding: 32px 22px;
  }

  .split-login {
    grid-template-columns: 1fr;
  }

  .split-tools {
    grid-template-columns: 1fr;
  }

  .login-brand-panel,
  .tools-brand-panel {
    min-height: 38vh;
    padding: 42px 24px;
  }

  .login-brand-panel img,
  .tools-brand-panel img {
    width: min(260px, 76%);
  }

  .login-access-panel,
  .tools-access-panel {
    min-height: 62vh;
    align-items: start;
    padding: 40px 24px;
  }

  .login-access-card h1,
  .tools-header h1 {
    font-size: 30px;
  }

  .tools-header {
    flex-direction: column;
  }

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