:root{
  --bg: #0b1220;
  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.06);
  --text: #e5e7eb;
  --muted: rgba(229,231,235,.78);
  --border: rgba(255,255,255,.14);
  --shadow: 0 20px 55px rgba(0,0,0,.35);
  --ring: 0 0 0 4px rgba(59,130,246,.25);
  --primary: #3b82f6;
  --danger: #ef4444;
  --ok: #22c55e;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Helvetica Neue", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(59,130,246,.25), transparent 55%),
    radial-gradient(900px 500px at 90% 30%, rgba(239,68,68,.18), transparent 55%),
    radial-gradient(800px 500px at 50% 100%, rgba(34,197,94,.14), transparent 55%),
    var(--bg);
}

.container{
  width:min(1100px, 92vw);
  margin:32px auto 48px;
}

.hero{
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  padding:18px 18px;
  background:linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.hero img{
  max-width:520px;
  width:100%;
  height:auto;
  border-radius:14px;
  background:#fff;
}

.hero-content{
  flex:1;
  min-width:260px;
  padding:6px 8px;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  font-size:13px;
  color:var(--muted);
  letter-spacing:.2px;
  margin-bottom:10px;
}
.dot{
  width:8px;height:8px;border-radius:99px;background:var(--primary);
  box-shadow:0 0 0 6px rgba(59,130,246,.18);
}

h1{
  margin:0 0 10px 0;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: .2px;
}

.sub{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.card{
  margin-top:18px;
  background:linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:18px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}

.field{
  grid-column: span 6;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.field.full{grid-column: span 12;}
.field.third{grid-column: span 4;}

label{
  font-size:13px;
  color:var(--muted);
  font-weight:600;
}

input, select{
  width:100%;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.18);
  color:var(--text);
  border-radius:12px;
  padding:12px 12px;
  outline:none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}
input::placeholder{color: rgba(229,231,235,.48)}
input:focus, select:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: var(--ring);
}
input[aria-invalid="true"], select[aria-invalid="true"]{
  border-color: rgba(239,68,68,.7);
  box-shadow: 0 0 0 4px rgba(239,68,68,.18);
}

.hint{
  font-size:12px;
  color: rgba(229,231,235,.65);
}

.error{
  font-size:12px;
  color: #fecaca;
  display:none;
}
.error.show{display:block;}

.actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:6px;
}

.btn{
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  padding:12px 14px;
  background: linear-gradient(180deg, rgba(59,130,246,.95), rgba(37,99,235,.9));
  color:#fff;
  font-weight:700;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform .08s ease, filter .15s ease;
  min-width:220px;
}
.btn:hover{filter:brightness(1.02)}
.btn:active{transform: translateY(1px)}
.btn[disabled]{opacity:.7; cursor:not-allowed; filter:saturate(.7)}

.note{
  font-size:12px;
  color: rgba(229,231,235,.7);
}

.alert{
  border-radius:14px;
  padding:12px 14px;
  margin: 0 0 14px 0;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
}
.alert.ok{border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.12)}
.alert.warn{border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.10)}
.alert.err{border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.10)}

@media (max-width: 880px){
  .hero{flex-direction:column; align-items:stretch}
  .hero img{max-width:100%}
}

@media (max-width: 720px){
  .container{margin:18px auto 32px}
  .card{padding:14px}
  .field{grid-column: span 12}
  .field.third{grid-column: span 12}
  .actions{flex-direction:column; align-items:stretch}
  .btn{width:100%}
}

