:root{
  --bg0:#0b1220;
  --bg1:#0b1426;
  --card: rgba(255,255,255,.10);
  --border: rgba(255,255,255,.16);
  --text: rgba(255,255,255,.94);
  --muted: rgba(255,255,255,.72);
  --blue:#0a84ff;
  --green:#34c759;
  --red:#ff3b30;
  --shadow: 0 28px 80px rgba(0,0,0,.45);
}

html, body { height:100%; color-scheme: dark; }
body{
  margin:0;
  min-height:100vh;
  color: var(--text);
  background:
    radial-gradient(1200px 620px at 15% 0%, rgba(10,132,255,.22), transparent 60%),
    radial-gradient(900px 560px at 85% 10%, rgba(52,199,89,.16), transparent 60%),
    radial-gradient(780px 520px at 50% 110%, rgba(255,55,95,.12), transparent 62%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  -webkit-font-smoothing: antialiased;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}

.card{
  width: min(720px, 95vw); /* slightly narrower = Google Forms vibe */
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow:hidden;
}

.head{
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  display:flex;
  gap:12px;
  align-items:center;
}
.logo{
  width:34px; height:34px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex: 0 0 auto;
}
.logo img{ width:100%; height:100%; object-fit:cover; display:block; }

.head h1{
  margin:0;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: .2px;
}
.head p{
  margin:6px 0 0;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
}

.body{ padding: 16px 18px 18px; }

.notice{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  font-weight: 900;
  margin-bottom: 12px;
}
.notice.ok{ border-color: rgba(52,199,89,.40); background: rgba(52,199,89,.10); }
.notice.bad{ border-color: rgba(255,59,48,.45); background: rgba(255,59,48,.12); }

/* --- Google Forms-ish sections --- */
.sectionTitle{
  font-weight: 950;
  font-size: 15px;
  margin: 4px 0 2px;
}
.sectionHint{
  color: rgba(255,255,255,.72);
  font-weight: 850;
  font-size: 12.5px;
  margin: 0 0 10px;
}

.req{
  color: rgba(255,59,48,.92);
  font-weight: 950;
}

.field{ margin-top: 10px; }

label{
  display:block;
  margin: 10px 0 8px;
  color: rgba(255,255,255,.88);
  font-weight: 900;
}

input[type="email"], input[type="password"]{
  width: 100%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;           /* less pill = more Forms */
  padding: 14px 14px;
  font-size: 16.5px;
  outline: none;
  color: rgba(255,255,255,.96);
  caret-color: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
}

input:focus{
  border-color: rgba(10,132,255,.70);
  box-shadow: 0 0 0 6px rgba(10,132,255,.22);
}

input::placeholder{ color: rgba(255,255,255,.55); }

.hint{
  margin-top: 8px;
  color: rgba(255,255,255,.70);
  font-weight: 850;
  font-size: 12.5px;
  line-height: 1.25;
}

/* Grid: keep for structure but default to one-column */
.grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.grid.one{ grid-template-columns: 1fr; }
@media (max-width:780px){ .grid{ grid-template-columns: 1fr; } }

.row{
  display:flex;
  gap:10px;
  margin-top: 14px;
  flex-wrap:wrap;
}

.btn{
  flex:1;
  min-width: 170px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.95);
  font-weight: 950;
  font-size: 15px;
  cursor:pointer;
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height: 22px;
}

.btn.primary{
  background: rgba(10,132,255,.22);
  border-color: rgba(10,132,255,.38);
}

.btn.ghost{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
}

.btn:disabled{ opacity:.55; cursor:not-allowed; }

/* Mobile: make buttons full-width like Google Forms */
@media (max-width:520px){
  .btn{ min-width: 100%; }
}

.help{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  font-weight: 850;
}

.modal-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  align-items:center; justify-content:center;
  padding: 18px;
  z-index: 9999;
}
.modal{
  width: min(560px, 95vw);
  background: rgba(18,24,40,.92);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
  padding: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.modal h3{ margin: 2px 0 6px; font-size: 18px; font-weight: 950; }
.modal p{ margin: 0 0 12px; color: rgba(255,255,255,.82); font-weight: 800; line-height: 1.4; }
.modal .row{ margin-top: 10px; }

.devbox{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
  font-weight: 850;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.devbox b{ color: rgba(255,255,255,.95); }
