/* Reset / base for this page */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Inter", Roboto, Arial, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Mitt Konto – Hero / Layout ===== */
.account-hero {
  padding: 110px 0 40px; /* space for fixed header */
}

.account-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.account-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 6px;
}

.account-hero h1 {
  font-size: 2.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.account-hero p.lead {
  font-size: 1.02rem;
  color: #374151;
  max-width: 680px;
  margin: 0 auto 16px;
}

.account-hero p.meta {
  font-size: 0.9rem;
  color: #6b7280;
  max-width: 640px;
  margin: 0 auto 4px;
}

/* Step indicator */
.account-steps {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 18px auto 0;
  font-size: 0.86rem;
  color: #6b7280;
  flex-wrap: wrap;
}

.account-step-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-step-pill strong {
  font-size: 0.8rem;
  color: #4b5563;
}

.account-step-pill.is-active {
  border-color: #ff6b00;
  background: #fff7ed;
  color: #7c2d12;
}

/* ===== Card & Form ===== */
.account-card-wrap {
  max-width: 520px;
  margin: 24px auto 0;
}

.account-card {
  background: #f9fafb;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 20px 20px 22px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.account-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  text-align: left;
  margin-bottom: 4px;
}

.account-card p.helper {
  font-size: 0.92rem;
  color: #6b7280;
  margin-bottom: 14px;
}

form.account-form {
  text-align: left;
}

.form-row {
  margin-bottom: 14px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.form-label span.emoji {
  font-size: 1.1rem;
}

.form-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 10px 11px;
  font-size: 1rem;
  font-family: inherit;
  color: #111827;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: #ff6b00;
  box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.4);
  background: #fff7ed;
}

.form-hint {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-top: 3px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 0.96rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: #ff6b00;
  color: #fff;
  box-shadow: 0 4px 12px rgba(248, 113, 22, 0.35);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn-primary:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4);
}

.btn-primary[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: #e5e7eb;
  color: #374151;
  box-shadow: none;
}

.btn-secondary:hover:enabled {
  background: #d1d5db;
}

.btn-secondary[disabled] {
  opacity: 0.7;
  cursor: default;
}

.account-status {
  margin-top: 10px;
  font-size: 0.88rem;
  color: #6b7280;
}

.account-status strong {
  color: #111827;
}

.account-status--error {
  color: #b91c1c;
}

.account-status--success {
  color: #166534;
}

/* Step 2 (OTP) */
.otp-step {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #e5e7eb;
  display: none;
}

.otp-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.otp-cols .form-row {
  flex: 1 1 160px;
  margin-bottom: 0;
}

.account-small-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 640px) {
  .account-hero {
    padding-top: 96px;
  }

  .account-hero h1 {
    font-size: 1.8rem;
  }

  .account-card {
    padding: 16px 14px 18px;
  }

  .account-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
