.auth-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% -10%, rgba(72, 168, 255, .20), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(53, 213, 162, .16), transparent 30rem),
    linear-gradient(135deg, #0b1220 0%, #13233a 48%, #0d302d 100%);
  color: #142033;
}

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

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

.auth-split {
  width: min(1120px, 100%);
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  overflow: hidden;
  border: 1px solid rgba(213, 232, 240, .18);
  border-radius: 8px;
  background: rgba(18, 31, 49, .82);
  box-shadow:
    0 24px 74px rgba(2, 8, 23, .30),
    0 0 0 1px rgba(255, 255, 255, .04) inset;
}

.auth-side {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  padding: clamp(30px, 5vw, 56px);
  color: #f5f7fb;
  background:
    radial-gradient(circle at 18% 12%, rgba(84, 188, 255, .17), transparent 24rem),
    radial-gradient(circle at 90% 78%, rgba(53, 213, 162, .14), transparent 24rem),
    linear-gradient(145deg, rgba(18, 32, 55, .97) 0%, rgba(15, 61, 58, .92) 100%);
}

.auth-side::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(130deg, rgba(0, 0, 0, .52), transparent 76%);
}

.auth-side > * {
  position: relative;
  z-index: 1;
}

.auth-side-brand {
  display: grid;
  gap: 13px;
  width: min(280px, 100%);
}

.auth-side-brand img {
  width: min(210px, 72vw);
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .25));
}

.auth-side-brand span {
  width: fit-content;
  border: 1px solid rgba(143, 227, 212, .32);
  border-radius: 999px;
  padding: 5px 10px;
  color: #a7f3d0;
  background: rgba(15, 118, 110, .18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.auth-side-copy {
  max-width: 430px;
}

.auth-side-copy h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(32px, 4.3vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-side-copy p {
  margin: 0;
  color: #d5e2eb;
  font-size: 17px;
  line-height: 1.55;
}

.auth-highlights {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.auth-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5edf5;
  font-weight: 720;
}

.auth-highlights li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #35d5a2;
  box-shadow: 0 0 0 5px rgba(53, 213, 162, .13);
}

.auth-side-footer {
  color: #91a6b6;
  font-size: 13px;
}

.auth-form-panel {
  display: grid;
  place-items: center;
  padding: clamp(26px, 4.6vw, 54px);
  background:
    radial-gradient(circle at 88% 8%, rgba(53, 213, 162, .08), transparent 18rem),
    linear-gradient(180deg, #fbfcfe 0%, #eef5f7 100%);
}

.auth-card,
.tenant-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid rgba(18, 24, 38, .08);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .10);
  padding: 30px;
}

.tenant-card {
  width: min(980px, 100%);
}

.login-card {
  width: 100%;
  max-width: 430px;
}

.signup-card {
  max-width: 480px;
}

.auth-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-brand span {
  color: #0f766e;
}

.auth-card h1,
.tenant-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

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

.login-kicker {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-muted {
  margin: 0 0 22px;
  color: #607085;
  line-height: 1.5;
}

.pending-email {
  margin: -10px 0 18px;
  padding: 12px 13px;
  border: 1px solid #d6e0eb;
  border-radius: 6px;
  background: #f9fbfd;
  color: #142033;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  color: #233047;
}

.auth-form input,
.tenant-search input {
  width: 100%;
  border: 1px solid #d6e0eb;
  border-radius: 6px;
  padding: 13px 13px;
  font: inherit;
  background: #f9fbfd;
  color: #142033;
}

.auth-form input:focus,
.tenant-search input:focus {
  outline: 3px solid rgba(20, 184, 166, .18);
  border-color: #14b8a6;
  background: #fff;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
  font-size: 14px;
}

.auth-actions a,
.auth-linkline a {
  color: #0f766e;
  font-weight: 800;
  text-decoration: none;
}

.auth-actions a:hover,
.auth-linkline a:hover {
  color: #115e59;
  text-decoration: underline;
}

.auth-linkline {
  margin: 18px 0 0;
  text-align: center;
}

.button,
.auth-form button,
.tenant-action button,
.tenant-toolbar button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: #0f766e;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.button:hover,
.auth-form button:hover,
.tenant-action button:hover,
.tenant-toolbar button:hover {
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 118, 110, .22);
}

.auth-form button:disabled {
  cursor: not-allowed;
  opacity: .6;
  transform: none;
  box-shadow: none;
}

.button.secondary,
.tenant-toolbar button.secondary {
  color: #0f766e;
  background: #e6f4f1;
}

.tenant-refresh-button {
  color: #0f766e;
  background: #e6f4f1;
}

.alert {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
  border-radius: 6px;
  padding: 11px 12px;
  margin: 0 0 16px;
}

.notice {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  border-radius: 6px;
  padding: 11px 12px;
  margin: 0 0 16px;
}

.tenant-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.tenant-user {
  color: #607085;
  font-size: 14px;
}

.tenant-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.tenant-search {
  flex: 1;
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.tenant-table-wrap {
  overflow-x: auto;
}

.tenant-table {
  width: 100%;
  border-collapse: collapse;
}

.tenant-table th,
.tenant-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #e5ebf1;
  text-align: left;
  vertical-align: middle;
}

.tenant-table th {
  color: #607085;
  font-size: 13px;
  text-transform: uppercase;
}

.tenant-action {
  text-align: right;
}

.tenant-status {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.tenant-status > span {
  font-weight: 800;
  color: #233047;
}

.tenant-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf1;
}

.tenant-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #14b8a6;
}

.tenant-status-note,
.tenant-refresh-note {
  margin: 0;
  color: #607085;
  font-size: 14px;
  line-height: 1.45;
}

.tenant-refresh-note {
  margin-bottom: 16px;
}

.tenant-row-ready .tenant-status > span {
  color: #166534;
}

.tenant-row-ready .tenant-progress span {
  background: #22c55e;
}

.tenant-row-error .tenant-status > span,
.tenant-support {
  color: #9f1239;
}

.tenant-row-error .tenant-progress span {
  background: #f43f5e;
}

.tenant-waiting,
.tenant-support {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 800;
  background: #f8fafc;
}

.tenant-waiting {
  color: #475569;
}

.tenant-empty {
  color: #607085;
  text-align: center;
}

@media (max-width: 720px) {
  .auth-shell {
    align-items: start;
    padding: 20px 14px;
  }

  .auth-split {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-side {
    min-height: 300px;
    gap: 28px;
    padding: 28px 22px;
  }

  .auth-side-copy h2 {
    font-size: 30px;
  }

  .auth-side-copy p {
    font-size: 15px;
  }

  .auth-highlights {
    margin-top: 22px;
  }

  .auth-side-footer {
    display: none;
  }

  .auth-form-panel {
    padding: 20px 14px 22px;
  }

  .auth-card,
  .tenant-card {
    padding: 22px;
  }

  .tenant-header,
  .tenant-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tenant-action {
    text-align: left;
  }
}
