/* Sign-in dialog layout.
   Shared by the explorer shell (theme.css) and the static pages (pages.css),
   because the dialog markup is created at runtime by auth.js. */

.pe-hidden {
  display: none !important;
}

.pe-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 14px;
}

.pe-form .pe-input {
  flex: 1 1 auto;
  min-width: 0;
}

.pe-form .pe-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.pe-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line, rgba(110, 150, 220, 0.26));
  background: var(--panel-2, #0e1a31);
  color: var(--ink, #dfe8ff);
  font: 400 13px/1.5 Iosevka, ui-monospace, "SF Mono", Menlo, monospace;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pe-input::placeholder {
  color: var(--ink-muted, #7889a9);
}

.pe-input:focus {
  outline: 0;
  border-color: var(--blue, #4d8dff);
  box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.18);
}

.pe-hint {
  margin: 0 0 10px;
  font: 400 11.5px/1.6 Iosevka, ui-monospace, monospace;
  color: var(--ink-muted, #7889a9);
}

/* the verification code sits above its two buttons, so it needs its own spacing */
.pe-modal-card > div > .pe-input {
  margin-bottom: 10px;
}

.pe-modal-card .pe-actions {
  margin-top: 2px;
}

@media (max-width: 520px) {
  .pe-form {
    flex-direction: column;
  }

  .pe-form .pe-btn {
    width: 100%;
    text-align: center;
  }

  .pe-actions .pe-btn {
    flex: 1 1 100%;
  }
}

/* ── dialog shell ─────────────────────────────────────────────────
   Duplicated from theme.css so the dialog also works on the static
   pages (pricing / guide / about), which do not load the app theme. */

.pe-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 8, 20, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pe-modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
  border-radius: 14px;
  border: 1px solid var(--line, rgba(110, 150, 220, 0.26));
  background: var(--panel, #0a1224);
  color: var(--ink-soft, #a6b8d8);
  box-shadow: 0 24px 60px rgba(2, 6, 18, 0.4);
  text-align: left;
}

.pe-modal-card h2 {
  margin: 10px 0 8px;
  font: 500 20px/1.3 Iosevka, ui-monospace, monospace;
  color: var(--ink-strong, #f4f8ff);
}

.pe-modal-card p {
  margin: 0 0 14px;
  font: 400 12px/1.7 Iosevka, ui-monospace, monospace;
  color: var(--ink-soft, #a6b8d8);
}

.pe-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  font: 500 10px/1 Iosevka, ui-monospace, monospace;
  letter-spacing: 0.1em;
  color: var(--blue, #4d8dff);
  background: rgba(77, 141, 255, 0.12);
  border: 1px solid rgba(77, 141, 255, 0.34);
}

.pe-close {
  position: absolute;
  top: 14px;
  right: 16px;
  appearance: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--ink-muted, #7889a9);
  font: 400 18px/1 Iosevka, ui-monospace, monospace;
}

.pe-btn {
  appearance: none;
  cursor: pointer;
  font: 500 12px/1 Iosevka, ui-monospace, monospace;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid var(--line, rgba(110, 150, 220, 0.26));
  color: var(--ink, #dfe8ff);
  background: var(--panel, #0a1224);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pe-btn:hover {
  border-color: var(--blue, #4d8dff);
}

.pe-btn.pe-primary {
  background: var(--blue, #4d8dff);
  border-color: var(--blue, #4d8dff);
  color: #ffffff;
}

.pe-btn.pe-primary:hover {
  filter: brightness(1.08);
}

.pe-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.pe-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 11px 14px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  background: var(--panel-2, #0e1a31);
}

.pe-google svg {
  flex: 0 0 auto;
}

.pe-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  font: 500 10px/1 Iosevka, ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted, #7889a9);
}

.pe-divider::before,
.pe-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft, rgba(110, 150, 220, 0.14));
}

.pe-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pe-actions .pe-btn {
  flex: 1 1 140px;
  text-align: center;
}

.pe-error {
  margin: 10px 0 0;
  font: 400 11px/1.6 Iosevka, ui-monospace, monospace;
  color: #e5484d;
}
