:root {
  --bg: #060913;
  --panel: rgba(13, 17, 31, 0.9);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f8fbff;
  --muted: #a8b3c7;
  --soft: #6d7892;
  --teal: #00d4b2;
  --indigo: #635bff;
  --danger: #fb7185;
  --ok: #48f0c7;
  --gradient: linear-gradient(90deg, var(--teal), #68ddff 52%, var(--indigo));
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(99, 91, 255, 0.28), transparent 34%),
    radial-gradient(circle at 86% 0%, rgba(0, 212, 178, 0.17), transparent 32%),
    linear-gradient(180deg, #060913 0%, #080b14 56%, #05070d 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
}

.panel {
  width: min(100%, 620px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--panel), rgba(7, 10, 20, 0.88));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  padding: clamp(22px, 5vw, 38px);
}

.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 212, 178, 0.36);
  border-radius: 10px;
  background: rgba(0, 212, 178, 0.08);
  color: var(--teal);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 52px);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

form {
  display: grid;
  gap: 16px;
}

.field,
.photo-field {
  display: grid;
  gap: 8px;
}

label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(2, 5, 14, 0.84);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  padding: 14px 15px;
  outline: none;
}

input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 212, 178, 0.14);
}

.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.photo-picker-button {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 212, 178, 0.45);
  border-radius: 10px;
  background: rgba(0, 212, 178, 0.1);
  color: var(--text);
  cursor: pointer;
  padding: 0 16px;
}

.photo-input:focus + .photo-preview,
.photo-picker-button:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 212, 178, 0.14);
}

.photo-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(0, 212, 178, 0.42);
  border-radius: 10px;
  background: rgba(0, 212, 178, 0.05);
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

.photo-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 8px;
}

.fine-print {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.submit-button {
  min-height: 58px;
  border: 0;
  border-radius: 10px;
  background: var(--gradient);
  color: #061013;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease;
}

.submit-button:disabled {
  cursor: wait;
  filter: grayscale(0.25) brightness(0.85);
}

.submit-button:not(:disabled):active {
  transform: translateY(1px);
}

.status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.status[data-state="ok"] {
  color: var(--ok);
}

.status[data-state="error"] {
  color: var(--danger);
}

.organizer-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--soft);
  font-size: 13px;
  text-decoration: none;
}

.organizer-link:hover {
  color: var(--teal);
}

@media (min-width: 700px) {
  form {
    grid-template-columns: 1fr 1fr;
  }

  .photo-field,
  .fine-print,
  .submit-button,
  .status {
    grid-column: 1 / -1;
  }
}
