@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Merriweather:wght@400;700&display=swap");

:root {
  color-scheme: light;
  --ink: #364a63;
  --muted: #526484;
  --soft: #8094ae;
  --line: #dbdfea;
  --field: #ffffff;
  --blue: #2c8fd8;
  --link: #6576ff;
  --primary: #6576ff;
  --primary-hover: #465fff;
  --danger: #e85347;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--muted);
  background: #ffffff;
  font-size: 14px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--link);
  font-weight: 400;
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

button,
input {
  font: inherit;
}

.signin-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 44.95%);
}

.signin-panel {
  grid-column: 2;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #ffffff;
}

.signin-main {
  width: min(100%, 420px);
  justify-self: center;
  align-self: center;
  margin-left: 0;
  padding: 20px;
}

.login-heading {
  margin-bottom: 24px;
}

.login-heading h1 {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.login-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 20px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.field-line label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.field-line a {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  min-height: calc(2.625rem + 2px);
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--field);
  color: var(--muted);
  font-size: 0.9375rem;
  outline: none;
  padding: 0.6875rem 1rem;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input::placeholder {
  color: #b6c6e3;
  font-weight: 500;
}

input:focus {
  border-color: #9aa7ff;
  box-shadow: 0 0 0 2px rgba(101, 118, 255, 0.07);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.icon-button {
  position: absolute;
  top: 2px;
  right: 3px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8ca0bf;
  cursor: pointer;
}

.icon-button:hover {
  background: #f3f7fb;
  color: var(--primary);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-eye-off {
  display: none;
}

.icon-button.is-visible .icon-eye {
  display: none;
}

.icon-button.is-visible .icon-eye-off {
  display: block;
}

.primary-button {
  width: 100%;
  min-height: calc(2.625rem + 2px);
  height: 44px;
  border: 0;
  border-radius: 5px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

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

.primary-button:active {
  transform: translateY(1px);
}

.form-status {
  min-height: 18px;
  margin: -10px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.form-status:empty {
  display: none;
}

.account-copy {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

.account-copy {
  margin: 24px 0 0;
  text-align: center;
}

.signin-footer {
  width: min(100%, 420px);
  justify-self: center;
  margin-left: 0;
  padding: 0 20px 28px;
  color: var(--muted);
}

.signin-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 12px;
}

.signin-footer a,
.signin-footer p {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.signin-footer p {
  margin: 0;
  text-align: center;
}

.visual-panel {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 24, 38, 0.34), rgba(4, 13, 22, 0.8)),
    url("./assets/sao-paulo-skyline.jpg") center / cover;
  isolation: isolate;
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 18, 30, 0.92), rgba(11, 32, 48, 0.48)),
    linear-gradient(180deg, rgba(4, 13, 22, 0.08), rgba(4, 13, 22, 0.56));
  z-index: 0;
}

.visual-content {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(34px, 4.2vw, 58px) clamp(34px, 5vw, 72px);
  color: #ffffff;
}

.visual-brand {
  display: inline-grid;
  justify-self: start;
  gap: 7px;
  color: #ffffff;
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.88;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.visual-brand i {
  width: 45px;
  height: 3px;
  display: block;
  background: var(--blue);
}

.visual-copy {
  width: min(100%, 600px);
  align-self: center;
  margin-top: clamp(24px, 7vh, 86px);
}

.visual-kicker {
  margin: 0 0 12px;
  color: #3aa2e7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.visual-copy h2 {
  margin: 0;
  color: #ffffff;
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.12;
  max-width: 720px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34);
}

.visual-copy p:not(.visual-kicker) {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.26);
}

@media (max-width: 1080px) {
  .signin-shell {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 48vw);
  }

  .signin-main,
  .signin-footer {
    width: min(100% - 56px, 420px);
    margin-left: 0;
  }

  .visual-content {
    padding: 36px 34px;
  }

  .visual-copy h2 {
    font-size: clamp(34px, 5vw, 50px);
  }

}

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

  .visual-panel {
    display: none;
  }

  .signin-panel {
    grid-column: 1;
    min-height: 100svh;
  }
}

@media (max-width: 520px) {
  .signin-main {
    width: min(100% - 40px, 420px);
    justify-self: center;
    margin-left: 0;
    padding-top: 38px;
  }

  .signin-footer {
    width: min(100% - 40px, 420px);
    justify-self: center;
    margin-left: 0;
    padding-bottom: 30px;
  }

  .field-line,
  .signin-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

.dashboard-page {
  min-height: 100svh;
  background: #f7f8fb;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
}

.dashboard-header {
  min-height: 64px;
  background: #081723;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-header-inner {
  width: min(100% - 48px, 1120px);
  min-height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.dashboard-brand {
  display: inline-grid;
  gap: 5px;
  color: #ffffff;
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 0.9;
}

.dashboard-brand:hover {
  color: #ffffff;
}

.dashboard-brand i {
  width: 38px;
  height: 3px;
  display: block;
  background: var(--blue);
}

.dashboard-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-button,
.avatar-link {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.tool-button {
  padding: 0;
  cursor: pointer;
}

.tool-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.avatar-link {
  background: #1f78b8;
  border-color: #1f78b8;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-content {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 24px 0 42px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  color: #6b7a90;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.page-copy {
  margin: 5px 0 0;
  color: var(--soft);
  font-size: 13px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.page-link:hover {
  color: #1f78b8;
}

.panel {
  background: #ffffff;
  border: 1px solid #dfe4ec;
  border-radius: 4px;
  box-shadow: none;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-head p {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 400;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.status-info {
  background: #e8f4fc;
  color: #2c8fd8;
}

.status-muted {
  background: #eef2f7;
  color: var(--muted);
}

.status-warning {
  background: #fff4df;
  color: #bd7b00;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel-head {
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.panel-head a {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.header-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
}

.header-link:hover {
  color: #ffffff;
}

.map-content {
  padding-bottom: 32px;
}

.map-panel {
  padding: 0;
  overflow: hidden;
}

.map-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #e6ebf2;
}

.map-head h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.map-head p {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
}

.map-head span {
  color: #6f7f95;
  font-size: 12px;
  white-space: nowrap;
}

.map-canvas {
  width: 100%;
  height: min(70svh, 680px);
  min-height: 520px;
  background: #f7f8fb;
}

.map-frame {
  position: relative;
}

.map-canvas.is-empty {
  display: grid;
  place-items: center;
  color: #6f7f95;
  font-size: 13px;
  text-align: center;
}

.map-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dashboard-link-only {
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
}

.map-only-link {
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

.map-only-link:hover {
  color: #1f78b8;
}

@media (max-width: 680px) {
  .dashboard-header-inner,
  .dashboard-content {
    width: min(100% - 32px, 1120px);
  }

  .page-head {
    display: grid;
  }

  .map-canvas {
    height: 520px;
    min-height: 520px;
  }
}
