:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #059669;
  --error: #dc2626;
  --bg: #f8fafc;
  --card-bg: var(--nav-card, #ffffff);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.register-container {
  width: 100%;
  max-width: 500px;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  text-align: center;
  margin-bottom: 32px;
}

.header img {
  width: 80px;
  margin-bottom: 16px;
  border-radius: 12px;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

/* STEPPER UI */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
}

.step-circle {
  width: 32px;
  height: 32px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.step-item.active .step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.step-item.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.step-item.active .step-label {
  color: var(--primary);
}

/* FORM STYLES */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}

.input-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: #fafafa;
}

.input-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--nav-card);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* PROFILE IMAGE */
.profile-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.image-preview-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
  position: relative;
  cursor: pointer;
}

.image-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.image-preview-wrapper:hover .upload-overlay {
  opacity: 1;
}

.plus-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: var(--primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* MARKETER CATEGORIES */
.category-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--nav-card);
  border: 1.5px solid var(--border);
  transition: all 0.2s ease;
}

.category-item:hover {
  border-color: var(--primary);
  background: #eff6ff;
}

.category-item input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
}

.category-item span {
  font-weight: 500;
  color: var(--text-main);
}

/* BUTTONS */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--nav-card);
  border: 1.5px solid var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg);
}

/* TAG INPUT */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
}

.tag-chip {
  background: #eff6ff;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-chip i {
  cursor: pointer;
  font-size: 12px;
}

.tag-container input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  min-width: 100px;
  font-size: 14px;
}

/* PLAN CARDS */
.plan-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.plan-card {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.plan-card:hover {
  border-color: var(--primary);
  background: #f0f7ff;
}

.plan-card.active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 1px var(--primary);
}

.plan-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.plan-features {
  font-size: 13px;
  color: var(--text-muted);
  list-style: none;
}

.plan-features li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li i {
  color: var(--success);
}

.success-toast {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  display: none;
}

/* OTP INPUTS */
.otp-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.password-toggle {
  position: relative;
}

.password-toggle i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
}

.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .register-container {
    padding: 24px;
    border-radius: 0;
    box-shadow: none;
  }

  body {
    padding: 0;
    background: var(--nav-card);
  }
}