:root {
  --bg1: #0b1220;
  --bg2: #0f1b35;
  --card: #0f1830cc;
  --text: #eaf0ff;
  --muted: #b7c3e6;
  --line: #2a3a66;
  --primary: #7c3aed; /* purple */
  --primary2: #22c55e; /* green */
  --danger: #ef4444;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(
      1000px 600px at 15% 10%,
      rgba(124, 58, 237, 0.35),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at 90% 20%,
      rgba(34, 197, 94, 0.25),
      transparent 55%
    ),
    linear-gradient(160deg, var(--bg1), var(--bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 340px;
  max-width: 500px;
}

.hero {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 18px;
  position: relative;
  align-items: center;
}

.hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.08;
}
.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

#sl_logo {
  margin-bottom: 40px;
}

.meta {
  padding: 16px 26px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.meta a {
  color: #c7d2fe;
  text-decoration: none;
}
.meta a:hover {
  text-decoration: underline;
}

form {
  padding: 22px 22px 18px;
  display: grid;
  gap: 12px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  /* grid-template-columns: 1fr 1fr; */
  gap: 12px;
}
@media (max-width: 520px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 6px;
}
label span.req {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.field {
  position: relative;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 22, 0.55);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.02s ease;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(183, 195, 230, 0.6);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(124, 58, 237, 0.85);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.22);
}

.hint {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(183, 195, 230, 0.75);
}

.error input,
.error textarea,
.error select {
  border-color: rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}
.err-text {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 180, 180, 0.95);
}
.error .err-text {
  display: block;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

button {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.25);
  transition: transform 0.06s ease, filter 0.15s ease, opacity 0.15s ease;
}
button:hover {
  filter: brightness(1.05);
}
button:active {
  transform: translateY(1px);
}
button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: var(--text);
  font-weight: 650;
}

.alert {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  line-height: 1.45;
  display: none;
}
.alert.ok {
  display: block;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #d7ffe6;
}
.alert.bad {
  display: block;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #ffe2e2;
}

.foot {
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(183, 195, 230, 0.75);
  font-size: 12px;
  line-height: 1.45;
}
.foot a {
  color: #c7d2fe;
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
