:root {
  --ink: #081311;
  --ink-soft: #10201d;
  --paper: #f3f2ea;
  --mint: #a8f5cd;
  --acid: #d9ff62;
  --aqua: #79e3df;
  --muted: #9aa9a4;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --mono: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(420px, .7fr);
}

.login-context {
  min-width: 0;
  display: grid;
  align-content: space-between;
  padding: clamp(28px, 5vw, 74px);
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--ink);
  background-size: 38px 38px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.login-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 18px;
  letter-spacing: .04em;
}

.login-brand-logo {
  position: relative;
  width: 220px;
  height: 49px;
  display: block;
  overflow: hidden;
}

.login-brand-logo img {
  position: absolute;
  top: -141px;
  left: -50px;
  width: 328px;
  max-width: none;
  height: auto;
}

.login-brand b > span { color: var(--mint); }

.login-brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-block;
  border: 1px solid rgba(168,245,205,.7);
  transform: rotate(45deg);
}

.login-brand-mark i {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--mint);
}

.login-brand-mark i:nth-child(1) { left: 4px; top: 4px; }
.login-brand-mark i:nth-child(2) { right: 4px; top: 4px; }
.login-brand-mark i:nth-child(3) { left: 4px; bottom: 4px; }
.login-brand-mark i:nth-child(4) { right: 4px; bottom: 4px; }

.login-message {
  max-width: 820px;
  margin-block: clamp(80px, 12vh, 150px);
}

.login-eyebrow,
.login-panel-status,
.login-panel label > span:first-child {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.login-eyebrow { color: var(--aqua); }

.login-message h1 {
  margin: 24px 0 28px;
  font-size: clamp(58px, 7vw, 105px);
  font-weight: 430;
  line-height: .92;
  letter-spacing: -.06em;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.login-message h1 em {
  color: var(--mint);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.login-message p {
  max-width: 680px;
  margin: 0;
  color: #aab8b3;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.6;
}

.tenant-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.tenant-route > div {
  display: grid;
  gap: 4px;
}

.tenant-route span,
.tenant-route small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.tenant-route span { color: var(--aqua); }
.tenant-route b { font-size: 12px; }
.tenant-route i { color: var(--mint); font-style: normal; }

.login-panel {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 70px);
  color: var(--ink);
  background: var(--paper);
}

.login-panel-inner {
  width: min(100%, 450px);
}

.login-panel-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #45675f;
}

.login-panel-status i {
  width: 7px;
  height: 7px;
  background: #3c8d68;
  box-shadow: 0 0 0 5px rgba(60,141,104,.12);
}

.login-panel h2 {
  margin: 18px 0 8px;
  font-size: clamp(37px, 4vw, 54px);
  font-weight: 460;
  line-height: 1;
  letter-spacing: -.05em;
}

.login-panel-inner > p {
  margin: 0 0 34px;
  color: #68746f;
}

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

.login-panel label {
  display: grid;
  gap: 8px;
  margin: 0;
}

.login-panel label > span:first-child {
  color: #596761;
}

.login-panel input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8cfcb;
  border-radius: 0;
  outline: 0;
}

.login-panel input:focus {
  border-color: #3e7568;
  box-shadow: 0 0 0 4px rgba(62,117,104,.09);
}

.login-password {
  position: relative;
  display: block;
}

.login-password input { padding-right: 64px; }

.login-password button {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
  color: #38685d;
  background: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.login-button {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 18px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-weight: 700;
}

.login-button:hover {
  color: var(--ink);
  background: var(--acid);
}

.login-alert {
  margin: 0 0 20px;
  padding: 13px 15px;
  color: #8a382d;
  background: #f1ddd6;
  border-left: 3px solid #a64738;
  font-size: 12px;
}

.login-alert-success {
  color: #285c43;
  background: #dcece2;
  border-color: #3d7d5d;
}

.login-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 21px;
  color: #425d55;
  font-size: 11px;
}

.login-links a { border-bottom: 1px solid #9aaba5; }

.login-security-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin-top: 46px;
  padding-top: 18px;
  color: #6c7974;
  border-top: 1px solid #ccd1ce;
  font-size: 10px;
}

.login-security-note span { color: #3d7568; }
.login-security-note p { margin: 0; }
.login-security-note b { color: var(--ink); }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-context { min-height: 600px; border-right: 0; }
  .login-panel { min-height: 700px; }
}

@media (max-width: 560px) {
  .login-context { min-height: 520px; padding: 24px; }
  .login-message { margin-block: 60px; }
  .login-message h1 { font-size: clamp(48px, 16vw, 70px); }
  .tenant-route { grid-template-columns: 1fr; }
  .tenant-route > i { display: none; }
  .login-panel { min-height: 620px; padding: 38px 22px; }
}
