@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800&display=swap");

body.register-page {
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  min-height: 100vh;
  margin: 0;
  color: #1e293b;
  background: #eef7ff;
}

.register-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 5% 8%, #00c8d7 0 180px, transparent 182px),
    radial-gradient(circle at 98% 2%, #3f51b5 0 220px, transparent 222px),
    linear-gradient(180deg, #e7f4ff 0%, #f6fbff 60%, #eef2ff 100%);
  pointer-events: none;
}

.register-topbar {
  position: relative;
  z-index: 2;
  padding: 1.2rem 1.5rem;
}

.register-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #173f76;
  font-weight: 800;
}

.register-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-main {
  position: relative;
  z-index: 1;
  padding: 0 1.25rem 2rem;
}

.quick-register-card {
  max-width: 1180px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(23, 63, 118, 0.16);
  overflow: hidden;
  border: 1px solid #ecf2f9;
}

.quick-register-head {
  padding: 1.4rem 2rem 1rem;
  border-bottom: 1px solid #edf2f7;
}

.quick-register-head h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.quick-register-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.quick-register-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #edf2f7;
  background: #f8fcff;
}

.step-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 70px;
  color: #64748b;
  font-weight: 700;
  font-size: 1.02rem;
  border-bottom: 4px solid transparent;
}

.step-item.active {
  color: #1e3a8a;
  border-bottom-color: #3b82f6;
}

.step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d6e0ee;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: 0.75rem;
}

.step-item.active .step-icon {
  border-color: #7da6f7;
}

.step-item.completed {
  color: #1e3a8a;
}

.step-item.completed .step-icon {
  border-color: #10b981;
  background: #ecfdf5;
  color: #059669;
}

.form-step[hidden] {
  display: none;
}

.field.field-error input,
.field.field-error select,
.field.field-error textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.quick-register-form {
  padding: 1.7rem 2rem 1.8rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-grid.three-cols {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-grid.two-cols {
  grid-template-columns: 1fr 1fr;
}

.form-grid.one-col {
  grid-template-columns: 1fr;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: #334155;
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  padding: 0.8rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  transition: all 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.field select:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.field small {
  display: block;
  margin-top: 0.4rem;
  color: #64748b;
  font-size: 0.76rem;
}

.terms-row {
  border-top: 1px solid #edf2f7;
  margin-top: 0.8rem;
  padding-top: 1rem;
}

.terms-check {
  display: inline-flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #334155;
}

.terms-check a {
  color: #2563eb;
  text-decoration: none;
}

.action-row {
  border-top: 1px solid #edf2f7;
  margin-top: 1rem;
  padding-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.action-row [hidden] {
  display: none !important;
}

.btn-cancel,
.btn-prev,
.btn-save-next,
.btn-register {
  border-radius: 8px;
  border: 1px solid #dbe4f0;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-family: inherit;
}

.btn-cancel {
  background: #fff;
  color: #475569;
  margin-right: auto;
}

.btn-prev {
  background: #fff;
  color: #475569;
}

.btn-save-next,
.btn-register {
  border-color: transparent;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.btn-save-next:hover,
.btn-register:hover,
.btn-prev:hover {
  filter: brightness(0.97);
}

@media (max-width: 1024px) {
  .form-grid.three-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .quick-register-head h1 {
    font-size: 1.6rem;
  }

  .quick-register-steps {
    grid-template-columns: 1fr;
  }

  .step-item {
    justify-content: flex-start;
    padding: 0 1rem;
  }

  .form-grid.three-cols,
  .form-grid.two-cols {
    grid-template-columns: 1fr;
  }

  .quick-register-form,
  .quick-register-head {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .action-row {
    justify-content: stretch;
    flex-direction: column;
  }

  .btn-cancel,
  .btn-prev,
  .btn-save-next,
  .btn-register {
    justify-content: center;
  }
}
