:root {
  --bg: #0c0b0a;
  --ink: #f4efe6;
  --muted: #b7aea0;
  --accent: #e4572e;
  --line: rgba(244, 239, 230, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Georgia", "Times New Roman", serif;
}

body.pe_app {
  min-height: 100svh;
}

.pe_app_shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(12, 11, 10, 0.2), rgba(12, 11, 10, 0.92)),
    #161311;
}

.pe_app_top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 1.25rem 0;
}

.pe_brand {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.pe_brand span {
  color: var(--accent);
}

.pe_top_meta {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
}

.pe_app_main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.25rem 2rem;
  max-width: 28rem;
  width: 100%;
  margin: 0 auto;
}

.pe_kicker {
  margin: 0 0 0.35rem;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.pe_title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 0.95;
}

.pe_lead {
  margin: 0 0 1.5rem;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
}

.pe_form label {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  margin: 0.85rem 0 0.3rem;
  color: var(--muted);
}

.pe_form input[type="email"],
.pe_form input[type="password"],
.pe_form input[type="text"] {
  width: 100%;
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 4px;
  background: rgba(244, 239, 230, 0.1);
  color: var(--ink);
  font-size: 1.05rem;
  padding: 0.55rem 0.65rem;
  font-family: system-ui, sans-serif;
}

.pe_form input[type="email"]:focus,
.pe_form input[type="password"]:focus,
.pe_form input[type="text"]:focus {
  outline: none;
  border-color: rgba(244, 239, 230, 0.32);
  background: rgba(244, 239, 230, 0.14);
}

.pe_pw_wrap {
  position: relative;
  display: block;
}

.pe_pw_wrap input {
  padding-right: 2.4rem;
}

.pe_pw_toggle {
  position: absolute;
  right: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a8278;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pe_pw_toggle_on {
  color: var(--accent);
}

.pe_pw_icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.pe_check {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin: 1rem 0;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
}

.pe_btn {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.2rem;
  width: 100%;
  cursor: pointer;
}

.pe_btn:active {
  transform: translateY(1px);
}

.pe_btn_ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.pe_alt {
  margin: 1rem 0 0;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
}

.pe_alt a,
.pe_top_meta a {
  color: var(--ink);
}

.pe_err {
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  color: #ffb4a2;
  margin: 0 0 1rem;
}

.pe_privacy_toggle {
  display: flex;
  width: 100%;
  margin: 1.25rem 0 1.5rem;
  font-family: system-ui, sans-serif;
}

.pe_priv_btn {
  flex: 1;
  appearance: none;
  border: 1px solid var(--line);
  background: #2a2622;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
}

.pe_priv_btn:first-child {
  border-radius: 6px 0 0 6px;
  border-right: 0;
}

.pe_priv_btn:last-child {
  border-radius: 0 6px 6px 0;
}

.pe_priv_btn_on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pe_shutter_wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.25rem;
}

.pe_shutter {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  border: 6px solid #f4efe6;
  background: var(--accent);
  color: transparent;
  cursor: pointer;
  animation: pe_pulse 2.4s ease-in-out infinite;
}

.pe_shutter:focus {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

@keyframes pe_pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.pe_status {
  min-height: 1.4rem;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.pe_status_ok {
  color: #c8e6c9;
}

.pe_status_bad {
  color: #ffb4a2;
}

.pe_status_busy {
  color: var(--ink);
}

.pe_gps {
  margin: 0.5rem 0 0;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
}

.pe_gps_ok {
  color: #8fbf8a;
}

.pe_gps_bad {
  color: var(--muted);
}

.pe_hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.pe_app_foot {
  display: flex;
  justify-content: space-between;
  padding: 0 1.25rem 1.25rem;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
}

.pe_app_foot a {
  color: var(--muted);
}

.pe_app_foot form {
  margin: 0;
}

.pe_link_btn {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
