:root {
  --primary: #4f46e5;
  --primary-soft: rgba(79, 70, 229, 0.12);
  --bg: #f0f4f8;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: rgba(0, 0, 0, 0.1);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 24px;
}

.container {
  max-width: 960px;
  margin: auto;
}

/* ===== Header ===== */
header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--primary);
}

header p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

/* ===== Controls & Panels ===== */
.controls,
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.controls:hover,
.panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.control-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.control-group {
  flex: 1;
}

label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

select,
input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-family: inherit;
  background: #fdfdff;
  transition: all 0.2s ease;
  font-size: 14px;
}

textarea {
  min-height: 200px;
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* Password toggle */
.password-field {
  position: relative;
}

.password-field i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--muted);
}

/* ===== Content Panels ===== */
.content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

h3 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 12px;
}

.buttons {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}

button {
  border: none;
  border-radius: var(--radius);
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.primary:active {
  transform: scale(0.97);
}

.secondary {
  background: var(--primary-soft);
  color: var(--primary);
}

.secondary:hover {
  background: rgba(79, 70, 229, 0.18);
  transform: translateY(-1px);
}

/* ===== Info & Footer ===== */
.info {
  background: linear-gradient(90deg, #e0e7ff, #f3f4f6);
  border-left: 4px solid var(--primary);
  padding: 16px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

footer {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .content {
    grid-template-columns: 1fr;
  }
}
