/* Moksha registration pages: the same look as the registration card on mokshansut.com. */
@font-face {
  font-family: "Rumble Brave";
  src: url("fonts/rumble-brave.otf") format("opentype");
  font-display: swap;
  ascent-override: 75%;
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  --bg: #110b06;
  --card: #170e07;
  --gold: #d3bf93;
  --gold-dark: #b79546;
  --text: #f3ead2;
  --label: #efe3c2;
  --muted: rgba(243, 234, 210, 0.6);
  --faint: rgba(243, 234, 210, 0.35);
  --line: rgba(211, 191, 147, 0.25);
  --field: rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 75% 50% at 50% 0%, rgba(103, 80, 51, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 55% 40% at 50% 100%, rgba(51, 28, 29, 0.22) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 24px 16px 64px;
}

.card {
  max-width: 560px;
  margin: 0 auto;
  padding: 1px;
  background: linear-gradient(145deg, rgba(103, 80, 51, 0.75) 0%, rgba(253, 248, 205, 0.12) 35%,
    rgba(70, 98, 105, 0.35) 65%, rgba(103, 80, 51, 0.65) 100%);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.card > .inner {
  padding: 28px 20px 32px;
  background: linear-gradient(155deg, #1e1108 0%, #160d07 55%, #120c06 100%);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

@media (min-width: 560px) {
  body { padding-top: 48px; }
  .card > .inner { padding: 32px 40px 40px; }
}

.logo { display: block; width: 170px; max-width: 60%; height: auto; margin: 0 auto 8px; }

h1 {
  margin: 0;
  text-align: center;
  font: 400 34px/1.1 "Rumble Brave", Georgia, serif;
  letter-spacing: 0.02em;
  color: var(--gold);
}

h2 {
  margin: 0 0 4px;
  font: 400 24px/1.2 "Rumble Brave", Georgia, serif;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.subtitle { margin: 8px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

.rule {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(103, 80, 51, 0.55), rgba(253, 248, 205, 0.15),
    rgba(103, 80, 51, 0.55), transparent);
}

form, .stack { display: grid; gap: 20px; }

label, .label { display: block; font-size: 14px; font-weight: 600; color: var(--label); }
.optional { font-weight: 400; opacity: 0.6; }
.hint { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: rgba(243, 234, 210, 0.55); }

input[type="text"], input[type="email"], input[type="tel"], input:not([type]) {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  outline: none;
}
input::placeholder { color: var(--faint); }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
input:disabled { opacity: 0.6; }

/* File inputs: a big tap target that shows what was picked */
.file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--field);
  cursor: pointer;
}
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex: none; }
.file .file-text { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.file.picked { border-style: solid; border-color: var(--gold-dark); }
.file.picked .file-text { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color: #1a1006;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }
.btn:disabled { cursor: not-allowed; opacity: 0.6; filter: none; }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--line); }

a { color: var(--gold); }

.notice { padding: 12px 16px; border-left: 3px solid; border-radius: 6px; font-size: 14px; }
.notice.info { background: rgba(35, 47, 47, 0.35); border-color: #466269; color: #a9d4d9; }
.notice.error { background: rgba(80, 28, 30, 0.35); border-color: #8a3a40; color: #f0b4ba; }
.notice.ok { background: rgba(30, 60, 36, 0.35); border-color: #3f7a4a; color: #a8deb2; }
.notice.warn { background: rgba(80, 62, 20, 0.35); border-color: #8b6914; color: #ecd38f; }
.notice p { margin: 0; }
.notice p + p, .notice ul { margin-top: 6px; }
.notice ul { padding-left: 18px; margin-bottom: 0; }

/* The TwinCafe sponsor step */
.sponsor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}
.sponsor .tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(211, 191, 147, 0.15);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}
.sponsor p { margin: 0; font-size: 14px; color: var(--muted); }

.legal { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

/* College search (combobox) */
.picker { position: relative; }
.picker ul {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  max-height: 290px;
  margin: 4px 0 0;
  padding: 4px 0;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1a1008;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.picker li { padding: 8px 12px; cursor: pointer; }
.picker li.active { background: rgba(211, 191, 147, 0.18); }
.picker li.other { border-top: 1px solid rgba(211, 191, 147, 0.15); color: var(--gold); }
.picker li.empty { color: rgba(243, 234, 210, 0.55); font-size: 14px; cursor: default; }

/* Status page */
.who { text-align: center; }
.who .name { font-size: 20px; font-weight: 600; }
.who .college { color: var(--muted); }
.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge.approved { background: rgba(63, 122, 74, 0.35); color: #a8deb2; }
.badge.review, .badge.pending, .badge.processing { background: rgba(139, 105, 20, 0.35); color: #ecd38f; }
.badge.rejected { background: rgba(138, 58, 64, 0.35); color: #f0b4ba; }

.qr {
  width: min(300px, 100%);
  margin: 0 auto;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}
.qr svg { display: block; width: 100%; height: auto; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; }

.center { text-align: center; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
[hidden] { display: none !important; }
