/* Installer UI - uses the Admin login theme (center card + blurred background)
 * Overrides/extends ../admin/login.css
 */

/* Prevent long CLI command from forcing horizontal page scroll */
.installer-bg{ overflow-x: hidden; }
.installer-wrap{ max-width: 1040px; }

.installer-brand{ padding: 26px 18px 12px; }

.installer-meta{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.installer-meta .pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e2e7eb;
  background: #f6f7f9;
  font-weight: 700;
  letter-spacing: .3px;
  color: #111;
}

.installer-meta .muted{ color: #666; }
.installer-meta code{
  background: #f6f7f9;
  border: 1px solid #e2e7eb;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 12px;
}

/* Stepper */
.stepper{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(#f7f8f9, #f1f3f5);
  border-top: 1px solid #e2e7eb;
  border-bottom: 1px solid #e2e7eb;
}

.step{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #e2e7eb;
  background: #ffffff;
  color: #111;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.step .n{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f6f7f9;
  border: 1px solid #e2e7eb;
  font-weight: 800;
  font-size: 12px;
}

.step.done{ opacity: .78; }
.step.todo{ opacity: .55; }
.step.active{
  border-color: rgba(227,90,42,.55);
  box-shadow: 0 0 0 3px rgba(227,90,42,.12);
}

/* Main layout */
.grid{
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

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

.card{
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(15,23,42,.08);
  overflow: hidden;
}

.pad{ padding: 18px; }

.installer-card h2{ margin: 0 0 6px; font-size: 20px; }
.installer-card p{ margin: 0 0 12px; color: #555; }
.small{ font-size: 12px; color: #666; }

.hr{ height: 1px; background: #e2e7eb; margin: 16px 0; }

.kv{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid #eef1f4;
}

.k{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
}

.v{
  font-size: 13px;
  color: #0f172a;
  text-align: right;
  word-break: break-word;
}

.dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #cbd5e1;
  display: inline-block;
}

.dot.good{
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.14);
}

.dot.bad{
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.14);
}

/* Notices */
.notice{
  margin: 16px 18px 0;
  padding: 12px 14px;
  border-radius: 3px;
  border: 1px solid #d9dee3;
  background: #f6f7f9;
  color: #333;
}

.notice.bad{ border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }
.notice.good{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.notice.warn{ border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.08); }

/* Forms + inputs */
.installer-card .form{ padding: 0; }

.row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 760px){
  .row{ grid-template-columns: 1fr; }
}

.field{ margin-top: 10px; }

.help{
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}

/* Extend login.css input style to selects, numbers, textarea */
select,
textarea,
input[type="email"],
input[type="number"]{
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d9dee3;
  border-radius: 3px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  background: #fff;
}

select:focus,
textarea:focus,
input[type="email"]:focus,
input[type="number"]:focus{
  border-color: #aab4bf;
  box-shadow: 0 0 0 3px rgba(160, 175, 190, 0.18);
}

textarea{ min-height: 170px; resize: vertical; }

/* Buttons: don't force full-width inside the installer */
.installer-card .btn{
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  text-decoration: none;
}

.btn.secondary{
  background: #3b434b;
  border-color: #2f363d;
}

.btn.danger{
  background: #b91c1c;
  border-color: #991b1b;
}

/* Action row */
.actions{
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Logs / CLI */
pre.log{
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid #d9dee3;
  background: #f6f7f9;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 100%;
}

