:root{
  --bg:#0b1220;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --field: rgba(255,255,255,.07);
  --fieldBorder: rgba(255,255,255,.10);
  --focus: rgba(120,170,255,.40);
  --danger:#ff5a6a;
  --ok:#35d07f;
  --btn:#ffffff;
  --btnText:#0b1220;
  --btnGhost: rgba(255,255,255,.10);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1200px 700px at 15% 20%, rgba(78,130,255,.28), rgba(0,0,0,0)),
    radial-gradient(1000px 650px at 90% 20%, rgba(90,235,170,.18), rgba(0,0,0,0)),
    linear-gradient(180deg, #0b1220 0%, #070a13 100%);
  color: var(--text);
}

.wrap{
  width: 100%;
  max-width: 980px;
  padding: 28px 16px;
}

.card{
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
}

.header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 280px;
}

.logo{
  width: 44px;
  height: 53px;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  padding: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}


.brandText h1{
  margin:0;
  font-size: 20px;
  letter-spacing: .2px;
}

.sub{
  margin: 6px 0 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.right{
  max-width: 520px;
}

.example{
  display:block;
  margin-top: 6px;
  color: rgba(255,255,255,.85);
  font-weight: 700;
}

form{
  margin-top: 8px;
  display:grid;
  gap: 12px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
  .right{ max-width: 100%; }
}

.field{ margin-top: 10px; }

label{
  display:block;
  margin: 0 0 8px 0;
  font-weight: 800;
  font-size: 13px;
  color: rgba(255,255,255,.82);
}

input, select{
  width:100%;
  border-radius: 12px;
  border: 1px solid var(--fieldBorder);
  background: var(--field);
  color: var(--text);
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input::placeholder{
  color: rgba(255,255,255,.42);
}

input:focus, select:focus{
  border-color: rgba(120,170,255,.60);
  box-shadow: 0 0 0 4px var(--focus);
  background: rgba(255,255,255,.10);
}

select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.70) 50%),
    linear-gradient(135deg, rgba(255,255,255,.70) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

select option{
  background: #0f172a;
  color: rgba(255,255,255,.92);
}

.hint{
  margin-top: 8px;
  min-height: 16px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}

.hint.bad{ color: var(--danger); }
.hint.ok{ color: var(--ok); }

.divider{
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 12px 0 2px 0;
}

.actions{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  margin-top: 14px;
}

button{
  border:0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: .2px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, filter .15s ease;
}

button:active{ transform: translateY(1px); }
button:disabled{ opacity:.6; cursor:not-allowed; transform:none; }

.primary{
  background: var(--btn);
  color: var(--btnText);
}

.ghost{
  background: var(--btnGhost);
  color: var(--text);
  border: 1px solid var(--border);
}

.status{
  flex: 1;
  min-height: 18px;
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
}

.status.bad{ color: var(--danger); }
.status.ok{ color: var(--ok); }
