/* Norbit hosting sign-in — same gate language as the Norbit.Online portal. */
html:has(.norbit-gate-page),
.fi-body:has(.norbit-gate-page) {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(34, 211, 238, .10), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(59, 130, 246, .12), transparent 50%),
    #0a0e16 !important;
  color-scheme: light;
}

.fi-body:has(.norbit-gate-page) > footer,
.fi-body:has(.norbit-gate-page) .fi-footer {
  display: none !important;
}

.norbit-gate-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.norbit-gate {
  width: min(700px, 100%);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  background: #eef1f5;
  color: #141a24;
  border: 1px solid #05070b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(34, 211, 238, .08);
  overflow: hidden;
}

.norbit-gate-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 1.35rem 1rem;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(6, 12, 28, .25), rgba(6, 12, 28, .6)),
    repeating-linear-gradient(135deg, #0c2146 0 10px, #123061 10px 20px),
    #0c1f3f;
  border-right: 1px solid #061127;
}

.norbit-gate-logo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #13294d, #070d1a 72%);
  border: 3px solid rgba(34, 211, 238, .7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 26px rgba(34, 211, 238, .35);
}

.norbit-gate-logo img { display: block; width: 64%; height: auto; }

.norbit-gate-name {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.norbit-gate-name span { color: #22d3ee; }

.norbit-gate-short {
  margin: 0;
  color: #22d3ee;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-shadow: 0 0 14px rgba(34, 211, 238, .45);
}

.norbit-gate-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem 1.2rem 0;
  background: #f4f6f9;
  color: #141a24;
}

.norbit-gate-head { margin: 0 0 .75rem; }
.norbit-gate-head h1 { margin: 0; line-height: 0; }
.norbit-gate-head img { display: block; width: 210px; max-width: 100%; height: auto; }

.norbit-gate-slot { min-width: 0; }

.norbit-gate-page--login .fi-simple-header { display: none !important; }

.norbit-gate-page .fi-simple-main,
.norbit-gate-page .fi-simple-page,
.norbit-gate-page .fi-simple-page-content,
.norbit-gate-page .fi-simple-main-ctn {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Flatten Filament spacing into a clean form stack */
.norbit-gate-page .fi-sc,
.norbit-gate-page .fi-sc-has-gap,
.norbit-gate-page .fi-grid,
.norbit-gate-page .fi-sc-form {
  display: block !important;
  gap: 0 !important;
  row-gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.norbit-gate-page .fi-grid-col,
.norbit-gate-page .fi-sc-component,
.norbit-gate-page .fi-sc-actions {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.norbit-gate-page .fi-fo-field {
  display: block !important;
  width: 100% !important;
  margin: 0 0 .65rem !important;
  padding: 0 !important;
}

.norbit-gate-page .fi-fo-field-label-col,
.norbit-gate-page .fi-fo-field-label-ctn,
.norbit-gate-page .fi-fo-field-content-col {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.norbit-gate-page .fi-input-wrp,
.norbit-gate-page .fi-input-wrp-content-ctn {
  display: flex !important;
  align-items: center;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.norbit-gate-page .fi-fo-field-label {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  margin: 0 0 .2rem !important;
}

.norbit-gate-page .fi-fo-field-label-content {
  color: #3a4650;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.norbit-gate-page .fi-fo-field-label-required-mark { display: none !important; }

.norbit-gate-page .fi-input-wrp {
  border-radius: 0 !important;
  background: #fff !important;
  border: 1px solid #b7c0c9 !important;
  box-shadow: none !important;
}

.norbit-gate-page .fi-input {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  color: #141a24 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: .5rem .6rem !important;
  font: inherit !important;
  font-size: .95rem !important;
  line-height: 1.3 !important;
}

.norbit-gate-page .fi-input:focus {
  outline: 2px solid rgba(34, 211, 238, .55);
  outline-offset: 1px;
}

.norbit-gate-page .fi-fo-field-wrp-error-message {
  color: #9b1c1c;
  font-size: .8rem;
  margin: .25rem 0 0;
}

.norbit-gate-page a[href*="password-reset"],
.norbit-gate-page a[href*="forgot"] {
  font-size: .72rem !important;
  color: #0e7490 !important;
  text-decoration: none !important;
}

/* Remember me */
.norbit-gate-page .fi-fo-field:has(.fi-checkbox-input) {
  margin: 0 !important;
}

.norbit-gate-page .fi-fo-field-label:has(.fi-checkbox-input) {
  justify-content: flex-start !important;
  align-items: center !important;
  gap: .45rem !important;
  margin: 0 !important;
}

.norbit-gate-page .fi-checkbox-input {
  -webkit-appearance: none;
  appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex: none;
  border: 1.5px solid #5b6b78;
  background: #fff;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}

.norbit-gate-page .fi-checkbox-input:checked {
  background: #0e7490;
  border-color: #0e7490;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6.2-6.2'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.norbit-gate-page .fi-checkbox-input:focus {
  outline: 2px solid rgba(34, 211, 238, .55);
  outline-offset: 1px;
}

.norbit-gate-page .fi-fo-field-label:has(.fi-checkbox-input) .fi-fo-field-label-content {
  color: #2f3b45;
  font-size: .72rem;
}

/* One clean action row: remember left, Abort/OK right */
.norbit-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: .1rem 0 .15rem;
  width: 100%;
}

.norbit-action-row > .fi-grid-col,
.norbit-action-row > .fi-sc-component,
.norbit-action-row > .fi-fo-field,
.norbit-action-row > .fi-ac {
  width: auto !important;
  margin: 0 !important;
}

.norbit-action-row .fi-ac {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  margin-left: auto !important;
}

.norbit-abort,
.norbit-gate-page button[type="submit"].fi-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  padding: .5rem .9rem;
  border: 0 !important;
  border-radius: 0 !important;
  font: inherit !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: none !important;
  line-height: 1.2;
  width: auto !important;
}

.norbit-abort { background: #6b757c; color: #fff; }
.norbit-abort:hover { background: #5a6369; color: #fff; }

.norbit-gate-page button[type="submit"].fi-btn {
  background: #22d3ee !important;
  color: #062a33 !important;
}

.norbit-gate-page button[type="submit"].fi-btn:hover {
  background: #4fe0f5 !important;
}

.norbit-gate-hint {
  margin: .35rem 0 .55rem;
  color: #56616b;
  font-size: .76rem;
  line-height: 1.35;
}

.norbit-gate-meta {
  margin: 0 0 .55rem;
  padding-top: .55rem;
  border-top: 1px solid #d0d6dc;
  display: grid;
  gap: .15rem;
}

.norbit-gate-meta > div {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: .55rem;
  font-size: .76rem;
  line-height: 1.3;
}

.norbit-gate-meta dt { margin: 0; color: #3a4650; font-weight: 700; }
.norbit-gate-meta dd { margin: 0; color: #4a5560; word-break: break-word; }

.norbit-gate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: auto -1.2rem 0;
  padding: .4rem .75rem;
  background: #1b2433;
  color: #c5cbd3;
}

.norbit-gate-clock {
  display: inline-block;
  min-width: 5.6rem;
  padding: .2rem .45rem;
  background: #03060a;
  color: #39ff6a;
  font-family: Consolas, "Courier New", monospace;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px rgba(57, 255, 106, .5);
}

.norbit-gate-back { font-size: .74rem; letter-spacing: .04em; }
.norbit-gate-back a { color: #67e8f9; text-decoration: none; }

@media (max-width: 720px) {
  .norbit-gate-page { padding: 1rem; }
  .norbit-gate { grid-template-columns: 1fr; }
  .norbit-gate-brand {
    flex-direction: row;
    justify-content: flex-start;
    gap: .75rem;
    padding: 1rem 1.1rem;
    border-right: 0;
    border-bottom: 1px solid #061127;
  }
  .norbit-gate-logo { width: 52px; height: 52px; }
  .norbit-gate-name { font-size: .72rem; text-align: left; }
  .norbit-gate-short { margin-left: auto; font-size: .95rem; letter-spacing: .12em; }
  .norbit-gate-bar { margin: auto -1.1rem 0; }
  .norbit-action-row { flex-wrap: wrap; }
  .norbit-action-row .fi-ac { width: 100% !important; }
  .norbit-action-row .norbit-abort,
  .norbit-action-row button[type="submit"].fi-btn { flex: 1; }
}
