* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0f;
  color: #f2f2f2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wrap {
  width: 100%;
  max-width: 480px;
  padding: 24px;
  text-align: center;
}

.photo-page {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.empty {
  opacity: 0.7;
  font-size: 1.1rem;
  padding: 24px;
  text-align: center;
}

.form-wrap {
  background: #16161d;
  border-radius: 16px;
  padding: 32px 24px;
}

.form-wrap h1 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  opacity: 0.85;
}

input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0b0b0f;
  color: #f2f2f2;
  font-size: 1rem;
}

button {
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #4f7cff;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background: #3a63e0;
}

.msg {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.msg.ok {
  background: rgba(60, 200, 120, 0.15);
  color: #6fe3a0;
}

.msg.err {
  background: rgba(255, 80, 80, 0.15);
  color: #ff8d8d;
}
