:root {
  --maxw: 760px;
  --gap: 16px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
body { 
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; 
  background:#79824E; 
  margin:0; 
  color:#1f2328; 
}
.container { 
    max-width: var(--maxw); 
    margin: 48px auto; 
    padding: 24px; 
}

.logo { 
    max-width: 240px;
}

.card { 
  background:#fff; 
  border-radius: var(--radius); 
  box-shadow: var(--shadow); 
  padding: 28px; 
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.8vw, 30px);
}

p.lead {
  margin: 0 0 20px;
  color: #4b5563;
}

/* Progress */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 22px;
}

.progress-label {
  font-size: 14px;
  color: #6b7280;
  min-width: 84px;
}

.progress {
  position: relative;
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress > .bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #60a5fa, #34d399);
  transition: width .28s ease;
}

form {
  display: block;
}

.step {
  display: none;
  gap: var(--gap);
}

.step.active {
  display: grid;
}

.step h2 {
  margin: 6px 0 8px;
  font-size: clamp(18px, 2.2vw, 22px);
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.col-6 {
  grid-column: span 6;
}

.col-12 {
  grid-column: span 12;
}

label {
  display: block;
  font-size: 14px;
  margin: 4px 0 6px;
  color: #374151;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  background: #fff;
  font-size: 15px;
  transition: box-shadow .2s, border-color .2s;
}

textarea {
  min-height: 100px;
  resize: vertical;
  margin-bottom: 8px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(147,197,253,.35);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  appearance: none;
  border: 0;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.primary {
  background: #111827;
  color: #fff;
}

.btn.primary:hover {
  background: #000;
}

.btn.secondary {
  background: #eef2ff;
  color: #1f2937;
}

.btn.secondary:hover {
  background: #e0e7ff;
}

.muted {
  color: #6b7280;
  font-size: 12px;
}

.muted.center {
  text-align: center;
  margin-top: 10px;
}

.muted.small {
  font-size: 11px;
  margin-top: -6px;
  margin-bottom: 12px;
}

.success {
  display: none;
  text-align: center;
  padding: 40px 16px;
}

.success.show {
  display: block;
}

@media (max-width: 720px) {
  .container { padding: 16px; margin: 24px auto; }
  .row { grid-template-columns: repeat(6, 1fr); }
  .col-6 { grid-column: span 6; }
  .btn { width: 100%; }
}

/* ===== Spacing Fixes for Phases ===== */

/* Headings and sections */
.step h2 {
  margin: 20px 0 12px;   /* more breathing room */
  font-size: clamp(20px, 2.4vw, 26px);
}
.step h3 {
  margin: 16px 0 8px;
  font-size: clamp(18px, 2vw, 22px);
  color: #374151;
}

/* Labels and inputs */
label {
  display:block;
  font-size: 14px;
  margin: 12px 0 6px;   /* consistent vertical spacing */
  color:#374151;
}
textarea, input, select {
  margin-bottom: 16px;  /* space after inputs */
}

/* Checkbox spacing */
.checkbox {
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:14px;
  margin-bottom: 12px;
}

/* Phase separation */
.step {
  display:none;
  gap: var(--gap);
  padding-top: 8px;
}
.step.active {
  display:block;
}

/* ===== Login/Signup Specific ===== */
.form-side {
  padding: 0 20px;
}

form.form {
  display: none;
}

form.form.active {
  display: block;
  animation: fadeIn .4s ease;
}

form .btn.primary {
  display: block;
  margin: 24px auto 0 auto;
}

form.form h2 {
  margin-bottom: 8px;
  font-size: clamp(20px, 2.4vw, 26px);
}

.info {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

a {
  color:#111827;
  font-weight:600;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

label.required::after {
  content: " *";
  color: red;
}

/* Smooth form swap */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}