:root {
  color-scheme: light;
  --auth-bg: #f5f6f8;
  --auth-card: #ffffff;
  --auth-text: #17191c;
  --auth-muted: #6b7078;
  --auth-border: #cfd3d9;
  --auth-blue: #0868e8;
  --auth-blue-hover: #0057c7;
  --auth-danger: #c9332e;
  --auth-success: #087a4b;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-text);
  background: var(--auth-bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.auth-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 80px 16px 32px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #000000;
  font-size: 28px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0;
  text-decoration: none;
}

.auth-logo-mark {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.auth-card {
  width: min(420px, 100%);
  margin: 40px auto 20px;
  padding: 32px 48px;
  border-radius: 4px;
  background: var(--auth-card);
  box-shadow: 0 2px 45px 4px rgba(0, 0, 0, 0.07);
}

.auth-card--wide {
  width: min(900px, 100%);
}

.auth-card h1 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.auth-field {
  display: grid;
  gap: 4px;
  margin-top: 15px;
}

form > .auth-field:first-child {
  margin-top: 0;
}

.auth-field > label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.auth-field > p {
  margin: 0;
  color: #495057;
  font-size: 12px;
  line-height: 1.15;
}

.auth-required {
  color: var(--auth-danger);
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap input,
.auth-field > input,
.auth-field select {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--auth-border);
  border-radius: 4px;
  outline: none;
  color: var(--auth-text);
  background: white;
  font-size: 14px;
  line-height: 34px;
}

.auth-input-wrap input:focus,
.auth-field > input:focus,
.auth-field select:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(8, 104, 232, 0.12);
}

.auth-hostname {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  min-height: 36px;
  border: 1px solid var(--auth-border);
  border-radius: 4px;
  background: white;
}

.auth-hostname:focus-within {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(8, 104, 232, 0.12);
}

.auth-hostname input {
  min-width: 0;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--auth-text);
  background: transparent;
  font-size: 14px;
  line-height: 34px;
}

.auth-hostname span {
  padding-right: 12px;
  color: #495057;
  font-size: 14px;
}

.auth-submit {
  width: 100%;
  min-height: 36px;
  margin-top: 32px;
  border: 0;
  border-radius: 4px;
  color: white;
  background: var(--auth-blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 14px;
  cursor: pointer;
}

[data-workspace-lookup] .auth-submit {
  margin-top: 16px;
}

.auth-submit:hover {
  background: var(--auth-blue-hover);
}

.auth-submit:disabled {
  opacity: 0.68;
  cursor: wait;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: #868e96;
  font-size: 12px;
  line-height: 19px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: #d7dadd;
  content: "";
}

.auth-footer-link {
  margin: 0 0 32px;
  text-align: center;
  font-size: 16px;
  line-height: 24.8px;
}

.auth-footer-link a,
.auth-inline-link {
  color: var(--auth-blue);
  font-weight: 600;
  text-decoration: none;
}

.auth-form-status {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--auth-danger);
  background: #fff1f0;
  font-size: 12px;
  line-height: 1.45;
}

.auth-form-status[data-type="success"] {
  color: var(--auth-success);
  background: #ecfdf3;
}

.auth-notice {
  margin: 0 0 16px;
  padding: 8px 10px;
  border-radius: 4px;
  color: #085f4d;
  background: #e8f7f1;
  font-size: 12px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  border: 0;
  color: #535861;
  background: transparent;
  font-size: 12px;
  transform: translateY(-50%);
  cursor: pointer;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.auth-workspace-results {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
}

.auth-workspace-results[hidden] {
  display: none;
}

.auth-workspace-results > p {
  margin: 0;
  color: var(--auth-muted);
}

.auth-workspace-results > a {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--auth-border);
  border-radius: 4px;
  color: var(--auth-text);
  text-decoration: none;
}

.auth-workspace-results > a:hover {
  border-color: var(--auth-blue);
  background: #f8fbff;
}

.auth-workspace-results > a span {
  color: var(--auth-muted);
  font-size: 12px;
}

.auth-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  color: var(--auth-text);
  background: white;
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 700px) {
  .auth-shell {
    padding: 40px 14px 28px;
  }

  .auth-logo {
    font-size: 26px;
  }

  .auth-card {
    margin-top: 32px;
    padding: 28px 22px;
  }

  .auth-card h1 {
    margin-bottom: 18px;
    font-size: 24px;
  }

  .auth-field > label,
  .auth-input-wrap input,
  .auth-field > input,
  .auth-hostname input,
  .auth-hostname span {
    font-size: 14px;
  }

  .auth-footer-link {
    font-size: 14px;
  }
}
